Skip to content

Commit b87f08c

Browse files
committed
Minor improvements
1 parent 6ecad58 commit b87f08c

3 files changed

Lines changed: 3 additions & 19 deletions

File tree

‎test/conftest_lite.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
# Files in the JupyterLite drive that a command's stdout and stderr are written to.
3030
# Terminal path /drive/<name> corresponds to JupyterLite contents path <name>.
31-
STDOUT_FILE = "lite_stdout.txt"
32-
STDERR_FILE = "lite_stderr.txt"
31+
STDOUT_FILE = "stdout.txt"
32+
STDERR_FILE = "stderr.txt"
3333

3434
# Command line that writes the exit code of the previous command line and the shell's cwd to the
3535
# terminal, as lines such as '?=0' and 'PWD=/drive'.

‎wasm/README.md‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -121,23 +121,6 @@ GIT2CPP_TEST_WASM=cockle pytest -v test_git.py::test_version
121121
GIT2CPP_TEST_WASM=lite pytest -v test_git.py::test_version
122122
```
123123

124-
### Watching the tests in a browser
125-
126-
The tests use [pytest-playwright](https://playwright.dev/python/docs/test-runners) so its command
127-
line options can be used to see what is happening in the browser, for both `cockle` and `lite`:
128-
129-
- `--headed` shows the browser window, and `--slowmo <ms>` slows down each browser operation.
130-
- `PWDEBUG=1` opens the Playwright Inspector to step through browser operations (use with `-s`).
131-
- `--tracing on` (or `retain-on-failure`) records a trace which can be viewed using
132-
`playwright show-trace test-results/<test-name>/trace.zip`.
133-
- `--video on` (or `retain-on-failure`) records a video of each test in `test-results`.
134-
135-
For example:
136-
137-
```bash
138-
GIT2CPP_TEST_WASM=lite pytest -v --headed --slowmo 100 test_git.py::test_version
139-
```
140-
141124
### Manually running the test servers
142125

143126
If wasm tests are failing it can be helpful to run the test servers and manually run `cockle`

‎wasm/lite-deploy/cockle-config-in.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"vi": "vim"
1111
},
1212
"environment": {
13+
"GIT_CORS_PROXY": "http://localhost:8881/",
1314
"GIT_AUTHOR_NAME": "Jane Doe",
1415
"GIT_AUTHOR_EMAIL": "jane.doe@blabla.com",
1516
"GIT_COMMITTER_NAME": "Jane Doe",

0 commit comments

Comments
 (0)