Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: split test:unit into different parts #2693

Merged
merged 2 commits into from
Dec 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- checkout
- <<: *restore_dependency_cache_unix
- run: npm run build
- run: npm run test:unit -- --browsers Chrome,Firefox
- run: npm run test -- --browsers Chrome,Firefox
- run: npm run test:integration:chrome
- run: npm run test:integration:firefox

Expand All @@ -89,7 +89,7 @@ jobs:
# npm i or restore cache
- <<: *restore_dependency_cache_win
- run: npm run build
- run: npm run test:unit -- --browsers IE
- run: npm run test -- --browsers IE
# install selenium
- run: |
choco install selenium-ie-driver --version 3.141.5
Expand Down
131 changes: 131 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,17 @@
"api-docs": "jsdoc --configure .jsdoc.json",
"build": "grunt",
"eslint": "eslint --color --format stylish '{lib,test,build,doc}/**/*.js' 'Gruntfile.js'",
"test": "npm run test:tsc && npm run test:unit",
"test": "npm run test:tsc && run-s \"test:unit:* -- {@}\" --",
"test:tsc": "tsc",
"test:unit": "karma start test/karma.conf.js",
"test:debug": "npm run test:unit -- --no-single-run --browsers=Chrome",
"test:unit:core": "npm run test:unit -- testDirs=core",
"test:unit:commons": "npm run test:unit -- testDirs=commons",
"test:unit:rule-matches": "npm run test:unit -- testDirs=rule-matches",
"test:unit:checks": "npm run test:unit -- testDirs=checks",
"test:unit:api": "npm run test:unit -- testDirs=api",
"test:unit:integration": "npm run test:unit -- testDirs=integration",
"test:unit:virtual-rules": "npm run test:unit -- testDirs=virtual-rules",
"integration": "node test/integration/full/test-webdriver.js",
"integration:chrome": "npm run integration -- browser=Chrome",
"integration:firefox": "npm run integration -- browser=Firefox",
Expand Down Expand Up @@ -131,6 +139,7 @@
"minami": "^1.2.3",
"mocha": "^6.1.2",
"node-notifier": "^7.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^1.17.1",
"revalidator": "~0.3.1",
"selenium-webdriver": "~3.6.0",
Expand Down
2 changes: 1 addition & 1 deletion test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = function(config) {
config.set({
basePath: '../',
singleRun: true,
autoWatch: true,
autoWatch: false,
plugins: [
'karma-mocha',
'karma-chai',
Expand Down