The frontend unit test suites (src/js/profcheck.test.js, src/js/chartread.test.js, src/js/gamut_viewer.test.js) lack an entry in package.json and are not executed in Gitea CI workflows (.gitea/workflows/).
No "test" script is defined. Running npm test fails with npm error Missing script: "test".
In .gitea/workflows/build-macos.yml, build-linux.yml, and build-windows.yml, only backend Rust tests (cargo test) are executed. As a consequence, regression bugs in JavaScript report parsing (e.g. Argyll -u JSON summaries), XY scanning table state transitions, or breach alert calculation are not caught in CI prior to packaging releases.
Proposed Remediation
Add a "test" script to package.json that executes the test suites:
Add a Run frontend tests step (npm test) in .gitea/workflows/build-macos.yml, build-linux.yml, and build-windows.yml preceding the app packaging step.
### Summary
The frontend unit test suites (`src/js/profcheck.test.js`, `src/js/chartread.test.js`, `src/js/gamut_viewer.test.js`) lack an entry in `package.json` and are not executed in Gitea CI workflows (`.gitea/workflows/`).
### Details
1. In `package.json`:
```json
"scripts": {
"fetch-argyll": "node scripts/fetch-argyll.mjs",
"tauri": "tauri"
}
```
No `"test"` script is defined. Running `npm test` fails with `npm error Missing script: "test"`.
2. In `.gitea/workflows/build-macos.yml`, `build-linux.yml`, and `build-windows.yml`, only backend Rust tests (`cargo test`) are executed. As a consequence, regression bugs in JavaScript report parsing (e.g. Argyll `-u` JSON summaries), XY scanning table state transitions, or breach alert calculation are not caught in CI prior to packaging releases.
### Proposed Remediation
1. Add a `"test"` script to `package.json` that executes the test suites:
```json
"test": "node src/js/profcheck.test.js && node src/js/chartread.test.js && node src/js/gamut_viewer.test.js"
```
2. Add a `Run frontend tests` step (`npm test`) in `.gitea/workflows/build-macos.yml`, `build-linux.yml`, and `build-windows.yml` preceding the app packaging step.
Resolved in ci/215-frontend-tests (commit 906b4f9) and merged into development (commit 56f275a).
Added "test" script to package.json executing node src/js/profcheck.test.js && node src/js/chartread.test.js && node src/js/gamut_viewer.test.js (68 automated test cases).
Integrated Run frontend tests (npm test) step into .gitea/workflows/build-macos.yml, .gitea/workflows/build-linux.yml, and .gitea/workflows/build-windows.yml immediately following npm ci.
Resolved in `ci/215-frontend-tests` (commit `906b4f9`) and merged into `development` (commit `56f275a`).
- Added `"test"` script to `package.json` executing `node src/js/profcheck.test.js && node src/js/chartread.test.js && node src/js/gamut_viewer.test.js` (68 automated test cases).
- Integrated `Run frontend tests` (`npm test`) step into `.gitea/workflows/build-macos.yml`, `.gitea/workflows/build-linux.yml`, and `.gitea/workflows/build-windows.yml` immediately following `npm ci`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
The frontend unit test suites (
src/js/profcheck.test.js,src/js/chartread.test.js,src/js/gamut_viewer.test.js) lack an entry inpackage.jsonand are not executed in Gitea CI workflows (.gitea/workflows/).Details
package.json:"test"script is defined. Runningnpm testfails withnpm error Missing script: "test"..gitea/workflows/build-macos.yml,build-linux.yml, andbuild-windows.yml, only backend Rust tests (cargo test) are executed. As a consequence, regression bugs in JavaScript report parsing (e.g. Argyll-uJSON summaries), XY scanning table state transitions, or breach alert calculation are not caught in CI prior to packaging releases.Proposed Remediation
"test"script topackage.jsonthat executes the test suites:Run frontend testsstep (npm test) in.gitea/workflows/build-macos.yml,build-linux.yml, andbuild-windows.ymlpreceding the app packaging step.Resolved in
ci/215-frontend-tests(commit906b4f9) and merged intodevelopment(commit56f275a)."test"script topackage.jsonexecutingnode src/js/profcheck.test.js && node src/js/chartread.test.js && node src/js/gamut_viewer.test.js(68 automated test cases).Run frontend tests(npm test) step into.gitea/workflows/build-macos.yml,.gitea/workflows/build-linux.yml, and.gitea/workflows/build-windows.ymlimmediately followingnpm ci.