Test execution should target directory. #74
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It turns out that the CI targets test files with the same name as the corresponding query files (just in a test location). This only works in case the test file has the exact same name as the query file in the source directory (this is for instance not the case for
.qlref
files).In this PR we make a quick and dirty fix, which enables test execution of all tests in the corresponding test folder for a query.
We probably need to streamline the work for test execution, if we intend that this QL pack should contain many queries.
I think that with the current implementation of test execution, we
A source of inspiration could be: https://github.com/github/codeql-coding-standards/blob/main/.github/workflows/codeql_unit_tests.yml