Findings in tests and fixtures
Last updated 28 November 2026
A repository with many test fixtures can fill a report with findings that nobody needs to read first. Since scanner 1.28.0 the scanner's own reports, and so the GitHub Action and the GitLab component, show the findings in tests and fixtures after the others. The free scan has done the same since 1.27.0. Every one of those findings still counts toward the result.
What each report shows
The grouping changes only where a finding is listed. Its rule, severity, location, evidence and fingerprint stay as they are, and a report without a finding in tests and fixtures is the same, byte for byte, as before.
| Report | What it shows |
|---|---|
| Text, the default in a terminal | Every such finding in full, under the heading In tests and fixtures after the other findings. The summary line gives how many open findings are in tests and fixtures after the accepted count. |
| Markdown: the job summary and the pull or merge request comment | The main table lists the findings outside tests and fixtures. The others follow the errors in a collapsed block, at most 25 rows with the count of the rest, and the verdict line says how many of the counted findings they are. |
| HTML | The findings outside tests and fixtures by item, then the others in one collapsed block, and a row in the counts table for the open ones. |
| JSON | "in_tests": true on each such finding, and no key on any other. |
| SARIF | properties.in_tests on each such result. The level, the fingerprint and the alert are unchanged. |
| The free scan | Since 1.27.0, the findings outside tests and fixtures first and the others in a closed group, with a split headline. |
The GitHub Action and the GitLab component post the scanner's Markdown report, so the pull request comment, the merge request note and the job summary show the collapsed block once they run scanner 1.28.0 or later. The GitLab Code Quality report and the CycloneDX document have no place for the mark and are unchanged.
Which files count as tests and fixtures
In the scanner's reports, and so in the GitHub Action and the GitLab component, a file is in tests or fixtures when one of the folders on its path, other than the folder of the item the file belongs to, is named test, tests, __tests__, fixtures, __fixtures__, testdata and test-data, in any letter case, or when its file name matches one of test_*.py, *_test.py, conftest.py, *_test.go, *.test.js, *.spec.js and *_spec.rb, with the letter case as written. The patterns with .test. and .spec. take each of the extensions js, jsx, mjs, cjs, ts, tsx, mts and cts.
In the scanner's reports an item's own folder name is never the reason a finding is grouped: a project skill named test in .claude/skills/test/ stays in the main table, while a fixture skill under tests/ and a skill's own tests/ folder are grouped. The free scan judges every folder below the one you paste, including a skill's own folder, so there a skill whose folder is named test is grouped (findings in tests and fixtures on the free scan).
The scanner reads the path from the folder it scans. In a repository scan that is the repository, so a fixture skill under tests/ is in tests and fixtures. spellwarden scan --user marks nothing, because a folder named test in a home directory or a coding agent's folder says nothing about the file. A finding about a remote server or a probed tool is judged by the configuration file that declares it, never by its address. The rule is the scanner's own: Tests and fixtures in the scanner's README.
They still count toward the result
An agent can load a file wherever it sits, and a harmful file can be hidden among tests. So the grouping never changes the result: --fail-on and the exit code count every open finding, a critical or high finding in tests and fixtures still fails the check at the default level, and the baseline accepts such a finding exactly as any other.
- The verdict line of the Markdown report and the summary line of the text report say how many of the counted findings are in tests and fixtures.
- The collapsed block's own summary says that the findings in it count toward the result.
- The JSON and SARIF reports hold every finding whole, with its mark.
The free scan counts every finding the same way: findings in tests and fixtures on the free scan.
Leaving a folder out on purpose
When a folder of fixtures should not be scanned at all, say so in the repository's settings, where reviewers see it in the diff. Add the folder to exclude in .spellwarden/config.yml:
version: 1
exclude: ["tests/fixtures/**"]On a pull or merge request the scanner reads this file from the base revision, so a request cannot leave out its own files. The scanner has no flag that hides findings in tests: a reviewed exclude is the way to narrow a scan.
The marker in JSON and SARIF
In the JSON report a finding in tests and fixtures carries "in_tests": true. The key is absent on every other finding and never false, and the report's "schema": 1 is unchanged, so a reader that ignores fields it does not know, as the scanner's README asks, reads the report as before. In SARIF the same mark is properties.in_tests on the result.
In connected mode the upload leaves the mark out, so the dashboard receives the same body as before, and it shows every finding as it did. Grouping in the dashboard comes later.