Skip to content

Commit e85cba8

Browse files
committed
Fix duplicate headers, remove rule-disablement
1 parent b0029bf commit e85cba8

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

docs/testing.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Then, from the `extensions/ql-vscode` directory, use the appropriate command to
3030
* View Tests: `npm test:view`
3131
* VSCode integration tests: `npm run test:vscode-integration`
3232

33-
#### CLI integration tests
33+
#### Running CLI integration tests from the terminal
3434

3535
The CLI integration tests require the CodeQL standard libraries in order to run so you will need to clone a local copy of the `github/codeql` repository.
3636

@@ -52,8 +52,7 @@ You will need to run tests using a task from inside of VS Code, under the "Run a
5252
* View Tests: run the _Launch Unit Tests_ task
5353
* VSCode integration tests: run the _Launch Unit Tests - No Workspace_ and _Launch Unit Tests - Minimal Workspace_ tasks
5454

55-
<!-- markdownlint-disable-next-line MD024 -->
56-
#### CLI integration tests
55+
#### Running CLI integration tests from VSCode
5756

5857
The CLI integration tests require the CodeQL standard libraries in order to run so you will need to clone a local copy of the `github/codeql` repository.
5958

@@ -65,8 +64,7 @@ The CLI integration tests require the CodeQL standard libraries in order to run
6564

6665
## Running a single test
6766

68-
<!-- markdownlint-disable-next-line MD024 -->
69-
### 1. From the terminal
67+
### 1. Running a single test from the terminal
7068

7169
The easiest way to run a single test is to change the `it` of the test to `it.only` and then run the test command with some additional options
7270
to only run tests for this specific file. For example, to run the test `test/vscode-tests/cli-integration/run-queries.test.ts`:
@@ -81,8 +79,7 @@ You can also use the `--testNamePattern` option to run a specific test within a
8179
npm run test:cli-integration -- --runTestsByPath test/vscode-tests/cli-integration/run-queries.test.ts --testNamePattern "should create a QueryEvaluationInfo"
8280
```
8381

84-
<!-- markdownlint-disable-next-line MD024 -->
85-
### 2. From VSCode
82+
### 2. Running a single test from VSCode
8683

8784
Alternatively, you can run a single test inside VSCode. To do so, install the [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner) extension. Then,
8885
you will have quicklinks to run a single test from within test files. To run a single unit or integration test, click the "Run" button. Debugging a single test is currently only supported

0 commit comments

Comments
 (0)