Skip to content

Commit

Permalink
restore mocha as a test runner option for easier dev debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
botandrose-machine committed Jan 10, 2025
1 parent 7fb99f6 commit 9825e9a
Show file tree
Hide file tree
Showing 7 changed files with 803 additions and 35 deletions.
11 changes: 9 additions & 2 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,15 @@ npm test test/core.js
```
If you want to run only one specific test, you can temporarily change `it("...` to `it.only("...` in the test file, and then specify the test file as above. Don't forget to undo this before you commit!

### Headed Mode (Interactive Browser Tests)
To run tests in a non-headless mode (with a visible browser window):
### Browser Mode
To run tests directly in the browser, simply `open test/index.html` in a browser.
On Ubuntu you can run:
```bash
xdg-open test/index.html
```
This runs all the tests (minus the performance tests) in the browser using Mocha instead of web-test-runner for easier debugging.

If you really want to open web-test-runner in headed mode, you can run:
```bash
npm run debug
```
Expand Down
Loading

0 comments on commit 9825e9a

Please sign in to comment.