Skip to content

Commit

Permalink
test: run in watch mode by default
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoBorzi committed Jun 16, 2019
1 parent 2279138 commit 24a6f11
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -14,6 +14,6 @@ install:
- npm install
script:
- ng lint
- npm run test
- npm run test-ci
- npm run e2e
- npm run build
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -66,7 +66,7 @@ More commands:
|`npm run electron:linux`| Builds your application and creates an app consumable on linux system |
|`npm run electron:windows`| On a Windows OS, builds your application and creates an app consumable in windows 32/64 bit systems |
|`npm run electron:mac`| On a MAC OS, builds your application and generates a `.app` file of your application that can be run on Mac |
|`npm run test`| Run unit tests once |
|`npm run test -- --watch`| Run unit tests in watch mode |
|`npm run test-ci`| Run unit tests once |
|`npm run test`| Run unit tests in watch mode |

**Note: Only /dist folder and node dependencies will be included in the executable.**
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -23,6 +23,7 @@
"electron:windows": "npm run build:prod && electron-builder build --windows",
"electron:mac": "npm run build:prod && electron-builder build --mac",
"test": "npm run postinstall:web && ng test",
"test-ci": "npm run postinstall:web && ng test --single-run",
"e2e": "npm run build:prod && mocha --timeout 300000 --require ts-node/register e2e/**/*.spec.ts",
"version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md"
},
Expand Down
2 changes: 1 addition & 1 deletion src/karma.conf.js
Expand Up @@ -29,6 +29,6 @@ module.exports = function (config) {
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: true
singleRun: false
});
};

0 comments on commit 24a6f11

Please sign in to comment.