Skip to content

Commit 7aa924a

Browse files
committed
test: Add test.sh
1 parent 3d9f1f5 commit 7aa924a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CONTRIBUTING.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22

33
## Prepare your development environment
44

5-
Just follow `.devcontainer/Dockerfile` to see what's needed.<br?>
5+
Just follow `.devcontainer/Dockerfile` to see what's needed.<br>
66
Basically it's just `nodejs` >= v18 `tsc` and `npm`. <br>
77
Qt5, cmake and ninja if you want to run the tests.
88

99

1010
## Running tests
1111

1212
```bash
13-
tsc
14-
node out/test.js
13+
sh test.sh
1514
```
1615

1716
Or simply let GitHub actions run the tests for you.<br>

test.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cmake --preset=dev -S test/qt_test && \
2+
cmake --build test/qt_test/build-dev && \
3+
tsc && node out/test.js

0 commit comments

Comments
 (0)