Testing custom queries This article was moved to "Testing custom queries" on the GitHub Docs site as of January 2023. Setting up a test CodeQL pack for custom queries Setting up the test files for a query Running codeql test run Example Prepare a query and test files Execute the test View the query test output