Skip to content

Commit

Permalink
test: Replaced JS testing via node-tap with builtin node:test
Browse files Browse the repository at this point in the history
  • Loading branch information
cederberg committed Dec 10, 2023
1 parent 14e6c69 commit 6542d2b
Show file tree
Hide file tree
Showing 9 changed files with 474 additions and 496 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

# Build
/.scannerwork/
/.tap/
/classes/
/lib/rapidcontext-*.jar
/plugin/
Expand Down
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ test-js:
--ignore-pattern 'src/plugin/legacy/**/*.js' \
--ignore-pattern '**/*.min.js' \
--ignore-pattern '**/MochiKit.js'
npx tap --allow-incomplete-coverage '**/*.test.@(js|mjs)'
npx tap report --coverage-report=text-lcov > .tap/coverage.lcov
node --import ./test/src/js/loader.mjs --test test/src/js/

test-java:
mkdir -p test/classes/ tmp/test/
Expand Down Expand Up @@ -159,7 +158,6 @@ test-sonar-scan:
-Dsonar.java.libraries=lib/*.jar \
-Dsonar.java.test.binaries=test/classes \
-Dsonar.java.test.libraries=test/lib/*.jar \
-Dsonar.javascript.lcov.reportPaths=.tap/coverage.lcov \
-Dsonar.coverage.jacoco.xmlReportPaths=tmp/test/jacoco.xml \
-Dsonar.host.url=https://sonarcloud.io

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"html-validate": "^8.0.5",
"jsdoc": "^4.0.2",
"stylelint": "^15.10.0",
"stylelint-config-standard": "^34.0.0",
"tap": "^18.5.7"
"stylelint-config-standard": "^34.0.0"
}
}
234 changes: 0 additions & 234 deletions src/plugin/test/files/js/rapidcontext/data.test.mjs

This file was deleted.

Loading

0 comments on commit 6542d2b

Please sign in to comment.