1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-08-30 17:19:46 +02:00

explain how to run tests

This commit is contained in:
Morris Brodersen
2023-11-24 17:44:41 +01:00
parent cbf6d0e178
commit 854f21b6e0

View File

@@ -548,6 +548,20 @@ However, it's currently lacking code coverage. Playwright provides some
but it's not straight-forward to produce a standard LCOV report from that,
and it would probably be difficult to unify end-to-end and unit test coverage.
To run the tests, you'll need a running web server, e.g. through
- installing Node.js (>= 20),
- checking out the repository,
- running `npm install`,
- and running `npm run dev`.
Then, to run the tests:
- `npm test` for headless tests
- `npm run test-ui` for interactive mode
The commands might ask you to install Playwright; just the follow instructions.
Reference:
- [addItem.test.mjs](./test/e2e/addItem.test.mjs)