Skip to content

Commit 7a9b0c5

Browse files
authored
add test hints for CCA
1 parent e5d4677 commit 7a9b0c5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/instructions/library.instructions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ Predicates such as `toString`, `getAPrimaryQlClass`, and `getAPrimaryQlModule` s
249249

250250
## Testing
251251

252+
- Follow: [Testing custom queries](https://docs.github.com/en/code-security/codeql-cli/using-the-advanced-functionality-of-the-codeql-cli/testing-custom-queries) best practices
253+
252254
All tests should be stored in the `ql/tests/library-tests/` directory.
253255
AST, CFG, and Dataflow tests should be stored in the `ql/tests/library-tests/ast`, `ql/tests/library-tests/cfg`, and `ql/tests/library-tests/dataflow` directories respectively.
254256

.github/instructions/queries.instructions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ The documentation should include:
111111

112112
## Testing Query
113113

114+
- Follow: [Testing custom queries](https://docs.github.com/en/code-security/codeql-cli/using-the-advanced-functionality-of-the-codeql-cli/testing-custom-queries) best practices
115+
114116
After generating the query, run the CodeQL test command to ensure the query passes all tests.
115117
Use the `codeql-test` command to run the tests on the query file.
116118

0 commit comments

Comments
 (0)