{"id":18546553,"url":"https://github.com/saveourtool/codeql-test","last_synced_at":"2025-05-15T07:08:51.577Z","repository":{"id":216828204,"uuid":"742383471","full_name":"saveourtool/codeql-test","owner":"saveourtool","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-18T16:11:20.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T09:33:23.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saveourtool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-12T10:58:15.000Z","updated_at":"2024-08-02T14:32:47.000Z","dependencies_parsed_at":"2024-11-06T20:32:41.423Z","dependency_job_id":"4859fb7e-2b3a-429f-91a2-bbf77c09a3ba","html_url":"https://github.com/saveourtool/codeql-test","commit_stats":null,"previous_names":["saveourtool/codeql-test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saveourtool%2Fcodeql-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saveourtool%2Fcodeql-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saveourtool%2Fcodeql-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saveourtool%2Fcodeql-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saveourtool","download_url":"https://codeload.github.com/saveourtool/codeql-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292042,"owners_count":22046426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T20:25:54.033Z","updated_at":"2025-05-15T07:08:46.567Z","avatar_url":"https://github.com/saveourtool.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## How to run\n\n#### 1) Download codeql-bundle.tar.gz manually: [here](https://github.com/github/codeql-action/releases)\n#### 2) Extract it.\n#### 3) Add \u003cextraction-root\u003e/codeql to PATH.\n#### 4) Run unit tests for QL queries with:\n```shell\ncodeql test run -- \u003ctest|dir\u003e\n```\nWhere `\u003ctest|dir\u003e` is `.ql` file that defines a test to run or directory which will be searched recursively for tests to run. \nTo run the test cases, use the path to the `codeWithQueries` folder.\n\nIf you want to put `.ql` files are separate from `.cpp` files, then you can use the command:\n```shell\ncodeql test run --additional-packs=\u003cqueries-dir\u003e -- \u003ctest|dir\u003e\n```\nWhere `\u003cqueries-dir\u003e` is dir with `.ql` files and `\u003ctest|dir\u003e` is `.qlref` file or directory which will be searched recursively for tests to run.\nTo run the test cases, use the path to the folders `queries` and `code`.\n\nAfter run, you will see the `NAME.actual` files (whose name matches to the `NAME.ql` test files).\nEach such file contains the result of running the test.\n\nIf the `NAME.expected` (whose name must matches to the `NAME.ql` test file) file does not exist or its contents do not match the `NAME.actual` file, the test will fail.\n\nYou can also rename the `NAME.actual` files left by `codeql test run` for failing tests into `NAME.expected` using the command:\n```shell\ncodeql test accept -- \u003ctest|dir\u003e\n```\nSuch that future runs on the tests that give the same output will be considered to pass.\n\nWhen running tests, you can also add `--learn` flag so that if a test produces unexpected output, instead of failing it, update its `NAME.expected` file to match the actual output, such that it passes:\n```shell\ncodeql test run --learn -- \u003ctest|dir\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaveourtool%2Fcodeql-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaveourtool%2Fcodeql-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaveourtool%2Fcodeql-test/lists"}