Skip to content

Commit f79e0a8

Browse files
[EDI] Testing custom queries (#59571)
Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com>
1 parent 57d2358 commit f79e0a8

4 files changed

Lines changed: 24 additions & 4 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Customize code scanning
3+
intro: Customize {% data variables.product.prodname_code_scanning %} to detect the security issues that matter most to you.
4+
shortTitle: Customize
5+
versions:
6+
fpt: '*'
7+
ghes: '*'
8+
ghec: '*'
9+
contentType: how-tos
10+
topics:
11+
- Code Security
12+
- Code scanning
13+
- CodeQL
14+
children:
15+
- /testing-custom-queries
16+
---

content/code-security/tutorials/customize-code-scanning/testing-custom-queries.md renamed to content/code-security/how-tos/scan-code-for-vulnerabilities/customize-code-scanning/testing-custom-queries.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Testing custom queries
3-
intro: You can set up tests for your {% data variables.product.prodname_codeql %} queries to ensure that they continue to return the expected results with new releases of the {% data variables.product.prodname_codeql_cli %}.
3+
shortTitle: Test custom queries
4+
intro: Verify your custom {% data variables.product.prodname_codeql %} queries and catch breaking changes before they affect your {% data variables.product.prodname_code_scanning %} results following new releases of the {% data variables.product.prodname_codeql_cli %}.
45
product: '{% data reusables.gated-features.codeql %}'
56
versions:
67
fpt: '*'
@@ -14,10 +15,11 @@ redirect_from:
1415
- /code-security/codeql-cli/testing-custom-queries
1516
- /code-security/codeql-cli/using-the-codeql-cli/testing-custom-queries
1617
- /code-security/codeql-cli/using-the-advanced-functionality-of-the-codeql-cli/testing-custom-queries
17-
contentType: tutorials
18+
- /code-security/tutorials/customize-code-scanning/testing-custom-queries
19+
contentType: how-tos
1820
---
1921

20-
## About testing custom queries
22+
## Testing custom queries
2123

2224
{% data variables.product.prodname_codeql %} provides a simple test framework for automated regression testing
2325
of queries. Test your queries to ensure that they behave as expected.

content/code-security/how-tos/scan-code-for-vulnerabilities/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ redirect_from:
1111
children:
1212
- /configure-code-scanning
1313
- /manage-your-configuration
14+
- /customize-code-scanning
1415
- /scan-from-the-command-line
1516
- /scan-from-vs-code
1617
- /integrate-with-existing-tools
1718
- /troubleshooting
1819
---
20+

content/code-security/tutorials/customize-code-scanning/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ children:
1818
- /running-codeql-code-scanning-in-a-container
1919
- /customizing-analysis-with-codeql-packs
2020
- /creating-codeql-query-suites
21-
- /testing-custom-queries
2221
- /creating-and-working-with-codeql-packs
2322
- /publishing-and-using-codeql-packs
2423
---
24+

0 commit comments

Comments
 (0)