Skip to content

Commit

Permalink
Reports code coverage on server side tests (#612)
Browse files Browse the repository at this point in the history
* added simple progress

* added babel-core/register to write server side unit tests in es6

* added code coverage to src/server
  • Loading branch information
mcrowder65 authored and jchip committed Nov 20, 2017
1 parent b84e4cb commit 82b5196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/electrode-archetype-react-app/arch-clap.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ Individual .babelrc files were generated for you in src/client and src/server
if (shell.test("-d", "test/server")) {
AppMode.setEnv(AppMode.src.dir);
return exec(
`istanbul cover node_modules/mocha/bin/_mocha`,
`istanbul cover --include-all-sources --root src/server --report text --report lcov node_modules/mocha/bin/_mocha`,
`-- -c --opts ${config.mocha}/mocha.opts test/server`
);
}
Expand Down

0 comments on commit 82b5196

Please sign in to comment.