Skip to content

Commit 169a8e4

Browse files
committed
Update README
1 parent 717840a commit 169a8e4

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

Tools/wasm/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,17 @@ make a node application that "embeds" the interpreter instead of acting like the
8484
CLI you will need to write your own alternative to `node_entry.mjs`.
8585

8686

87+
### Running tests
88+
89+
After building, you can run the full test suite with:
90+
```shell
91+
./cross-build/wasm32-emscripten/build/python/python.sh -m test -uall
92+
```
93+
You can run the browser smoke test with:
94+
```shell
95+
./Tools/wasm/emscripten/browser_test/run_test.sh
96+
```
97+
8798
### The Web Example
8899

89100
When building for Emscripten, the web example will be built automatically. It
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules
22
test-results
33
playwright-report
4-
4+
test_log.txt
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2-
npm ci
3-
npx playwright install
4-
CI=1 npx playwright test
2+
set -euo pipefail
3+
cd "$(dirname "$0")"
4+
rm -f test_log.txt
5+
echo "Installing node packages" | tee test_log.txt
6+
npm ci >> test_log.txt 2>&1
7+
echo "Installing playwright browsers" | tee test_log.txt
8+
npx playwright install 2>> test_log.txt
9+
echo "Running tests" | tee test_log.txt
10+
CI=1 npx playwright test | tee test_log.txt

0 commit comments

Comments
 (0)