Skip to content

Commit

Permalink
#801 #802. Added coveralls support for unit tests. Completed test tid…
Browse files Browse the repository at this point in the history
…y up for acceptance tests.
  • Loading branch information
Matthew Mulholland committed Jun 20, 2018
1 parent aad02e6 commit 1ebdb63
Show file tree
Hide file tree
Showing 4 changed files with 393 additions and 26 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"test-main": "mocha-webpack --webpack-config .electron-vue/webpack.test.config.js --glob *_spec.js test/main/specs",
"test": "(yarn run unit || yarn -v) && yarn run e2e",
"unit": "yarn run clean && karma start test/unit/karma.conf.js",
"e2e": "yarn run clean && yarn run pack && yarn run cucumber:postpack:impl && yarn run cucumber:report",
"e2e": "yarn run clean && yarn run pack && yarn run cucumber:postpack",
"e2e:dev": "yarn run cucumber:postpack:dev && yarn run cucumber:report",
"cucumber:postpack": "cross-env BABEL_ENV=test nyc cucumber-js --require-module babel-core/register test/features -f json:test/cucumber_report.json",
"cucumber:postpack:dev": "cross-env BABEL_ENV=test nyc cucumber-js --require-module babel-core/register --tags @dev test/features -f json:test/cucumber_report.json",
Expand Down Expand Up @@ -133,6 +133,7 @@
"chai-as-promised": "^7.1.1",
"chalk": "^2.3.1",
"copy-webpack-plugin": "^4.2.0",
"coveralls": "^3.0.1",
"cross-env": "^5.0.0",
"css-loader": "^0.28.10",
"cucumber": "^4.1.0",
Expand Down Expand Up @@ -162,13 +163,15 @@
"jsonfile": "^4.0.0",
"karma": "^2.0.3",
"karma-coverage": "^1.1.1",
"karma-coveralls": "^1.2.1",
"karma-electron": "^5.3.0",
"karma-mocha": "^1.2.0",
"karma-sinon-chai": "^1.3.3",
"karma-sourcemap-loader": "^0.3.7",
"karma-spec-reporter": "^0.0.32",
"karma-webpack": "^3.0.0",
"mocha": "^5.0.5",
"mocha-lcov-reporter": "^1.3.0",
"mocha-webpack": "^1.0.1",
"multispinner": "^0.2.1",
"node-gyp": "^3.6.2",
Expand Down
2 changes: 1 addition & 1 deletion test/features/tools/validate-table.feature
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ Feature: Validate Table
- decimalChar
- groupChar

@impl
@dev
@impl
Scenario Outline: Validate Table
Given Data Curator is open
And 1 data tab is displayed
Expand Down
2 changes: 1 addition & 1 deletion test/unit/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = config => {
preprocessors: {
'./index.js': ['webpack', 'sourcemap']
},
reporters: ['spec', 'coverage'],
reporters: ['spec', 'coverage', 'coveralls'],
singleRun: true,
webpack: webpackConfig,
webpackMiddleware: {
Expand Down
Loading

0 comments on commit 1ebdb63

Please sign in to comment.