Skip to content

Commit

Permalink
Merge pull request #186 from VisLab/spec-tester
Browse files Browse the repository at this point in the history
Initial commit of the spec testing - 154 tests fail due to incomplete implementation which is in progress.
  • Loading branch information
VisLab authored Sep 5, 2024
2 parents ffb6125 + 82f7bdb commit 36da963
Show file tree
Hide file tree
Showing 9 changed files with 7,999 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[codespell]
skip = datasets,.git,*.pdf,*.svg,deprecated,*.xml,*.mediawiki,*.omn,datasets
ignore-words-list = covert,hed,recuse
ignore-words-list = covert,hed,recuse,afterAll
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,19 @@ jobs:
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: ./node_modules/.bin/jest --coverage
coverageCommand: ./node_modules/.bin/jest --coverage --testPathIgnorePatterns=spec_tests

SpecTests:
runs-on: ubuntu-latest

steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Set up with Node.js LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Download dependencies
run: npm ci
- name: Test with Node.js LTS
run: npm run testSpecs
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ node_modules
.idea
dist/
/venv/
spec_tests/
spec_tests/*.txt
spec_tests/temp*.json

# Unit test / coverage reports
htmlcov/
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
"build": "node esbuild.mjs",
"prepublishOnly": "npm run build",
"lint": "eslint ./**/*.js",
"test": "jest",
"coverage": "jest --coverage",
"test": "jest --testPathIgnorePatterns=spec_tests",
"testSpecs": "jest --silent --noStackTrace spec_tests/jsonTests.spec.js",
"coverage": "jest --coverage --testPathIgnorePatterns=spec_tests/*",
"prepare": "husky install"
},
"contributors": [
Expand Down
Loading

0 comments on commit 36da963

Please sign in to comment.