Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/instructions/expected-files.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
applyTo: "**/*.expected"
---
Do not edit these files directly. They are generated by running the tests. If a `.expected` file has a non-empty `testFailures `section it should not be committed - you may want to update the inline expectation comments in the corresponding test source file (e.g. marking expected results as `MISSING` / `SPURIOUS`) then re-run the test.

To regenerate expectations for a query with a postprocessing `.qlref`, pass that `.qlref` to `codeql test run --learn`.
4 changes: 2 additions & 2 deletions unified/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ by Apple's swift-syntax rather than by tree-sitter.
- Check the output files for correctness but do not edit them manually. Regenerate them with `scripts/update-corpus.sh`.

## CodeQL Testing
- If you changed the extractor code, always rebuild it before running CodeQL tests.
- If you changed the extractor code or Unified QL tests report an incompatible database schema, rebuild with `scripts/create-extractor-pack.sh` and rerun the tests with `--search-path extractor-pack`.

- To run all CodeQL tests, run `codeql test run --search-path extractor-pack ql/test`

- Do not edit `.expected` files manually. To update the expected output, pass `--learn` to the `codeql test run` command.
- To update the expected output, pass `--learn` to the `codeql test run` command.

- To run a specific test, pass the specific directory to the `codeql test run` command instead of `ql/test`.
Loading