Skip to content

Commit 615e74a

Browse files
committed
running schema unit tests via vs code
1 parent f0e3626 commit 615e74a

5 files changed

Lines changed: 5309 additions & 8 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
src/schema_test_suite.pyc
88
src/__pycache__/
99
tests/node_modules
10+
*.pyc

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"mochaExplorer.files": "tests/**/*.test.js",
3+
"mochaExplorer.ignore": "**/node_modules/**"
4+
}

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,20 @@ brew install node@18
1010
```
1111

1212
After installation check that everything is correctly installed and which versions you are running:
13-
```
13+
14+
```bash
1415
node -v
1516
npm -v
1617
```
1718

1819
## Run the test suite
19-
```
20+
21+
```bash
2022
cd tests
2123
npm install
2224
npm test
2325
```
26+
27+
### Running in vs code
28+
29+
The tests are visible in the "Testing" sidebar after installing [Mocha Test Explorer](https://marketplace.cursorapi.com/items/?itemName=hbenl.vscode-mocha-test-adapter)

0 commit comments

Comments
 (0)