You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 27f471d
Browse filesBrowse the repository at this point in the historyBrowse files
We welcome [issues](https://github.com/checkmarx/kics-github-action/issues) to and [pull requests](https://github.com/checkmarx/kics-github-action/pulls) against this repository!
450
453
454
+
### Running the tests
455
+
456
+
Requires Node.js 22 or newer.
457
+
458
+
```sh
459
+
npm ci
460
+
npm test # unit and end-to-end tests
461
+
npm run test:coverage # same, plus a coverage report and the coverage gate used by CI
462
+
```
463
+
464
+
Tests live under `test/`:
465
+
466
+
- `test/unit`- the PR comment and job summary logic against a fake GitHub API
467
+
- `test/e2e` - the action run as a workflow would run it: `src/main.js`as a process, `entrypoint.sh` against a fake `kics`, and the `action.yml` contract
468
+
- `test/helpers`and `test/fixtures` - the fake GitHub API, KICS report builders and process runners
469
+
470
+
Tests marked with `knownBug` document known bugs: they are reported as `todo` and are expected to fail until the bug is fixed.
471
+
They are skipped in the coverage run, so coverage only counts verified behaviour.
0 commit comments