test: cover queues and court rotation and document release test choice
This commit is contained in:
1 parent
1d660a3c40
commit
0757e0df76
10 files changed
+730
-39
No files matched your search
+3
-1
@@ -149,6 +149,8 @@ Use the highest applicable bump. Because older repository commits do not consist
|
||||
|
||||
Show the current version, latest tag, recommendation, bump type, and reasoning to the developer. The developer may accept the recommendation or enter a different semantic version. Do not update files until the developer confirms the final version. Warn before using a version that is not greater than the current release or before using a prerelease identifier.
|
||||
|
||||
During release version confirmation, ask whether to run the test suite or skip it. Running tests is the default; skip them only when the developer explicitly chooses to skip. Record any skipped tests in the release validation report. Lint, build, and Cargo checks still apply.
|
||||
|
||||
### Synchronize the selected version
|
||||
|
||||
After confirmation, set the same semantic version in:
|
||||
@@ -171,7 +173,7 @@ cargo check
|
||||
|
||||
This validates the Rust package and refreshes its lockfile metadata when needed.
|
||||
|
||||
Then verify that all version declarations match and run the checks in `docs/testing.md`.
|
||||
Then verify that all version declarations match and run the checks in `docs/testing.md`, honoring the developer's test choice.
|
||||
|
||||
### Create the release tag
|
||||
|
||||
|
||||
@@ -28,6 +28,22 @@ nvm use lts/jod && npm test -- --configuration=ci
|
||||
|
||||
The test environment requires an available Chrome installation. Test coverage output, when enabled by the test runner, is written under `coverage/app/`.
|
||||
|
||||
Run the suite once in headless Chrome with a coverage report:
|
||||
|
||||
```bash
|
||||
export NVM_DIR="${NVM_DIR:-$HOME/.nvm}"
|
||||
. "$NVM_DIR/nvm.sh"
|
||||
nvm use lts/jod && npm test -- --watch=false --browsers=ChromeHeadless --code-coverage
|
||||
```
|
||||
|
||||
If Chrome is not auto-detected, set `CHROME_BIN` to its executable path
|
||||
(for example, `/snap/bin/chromium`) before running the command. Open
|
||||
`coverage/app/index.html` to inspect coverage by file.
|
||||
|
||||
The queue and assignment service tests exercise real browser IndexedDB, clearing
|
||||
their tables before and after each test. Court rotation page tests use service
|
||||
spies and signals to isolate assignments, confirmation, and role swaps.
|
||||
|
||||
## Lint and build
|
||||
|
||||
Lint TypeScript and Angular templates:
|
||||
|
||||
Reference in new issue
Block a user