Skip to content

Commit c4ddb58

Browse files
committed
get working coverage
1 parent 63a1cb1 commit c4ddb58

File tree

5 files changed

+39
-4
lines changed

5 files changed

+39
-4
lines changed

.coverage.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"include": [
3+
"**/*.tests.js"
4+
],
5+
"remapFormat": ["html", "cobertura", "clover", "json", "json-summary", "lcovonly", "teamcity", "text", "text-summary"],
6+
"output": "./.coverage"
7+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.DS_Store
22
node_modules
33
.deploy
4+
.coverage
5+
settings.coverage.json

.meteor/packages

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ practicalmeteor:chai
6060
practicalmeteor:sinon
6161
hwillson:stub-collections
6262
shell-server@0.2.3
63+
lmieulet:meteor-coverage
64+
practicalmeteor:mocha-console-runner
6365

6466
# security
6567
audit-argument-checks@1.0.7
6668
dispatch:mocha
67-
lmieulet:meteor-coverage
68-
practicalmeteor:mocha-console-runner

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,17 @@ To lint:
1818
```bash
1919
meteor npm run lint
2020
```
21+
22+
### Testing
23+
24+
Create a code coverage settings file called "settings.coverage.json"
25+
26+
```bash
27+
{
28+
"coverage": {
29+
"coverage_app_folder": "/Users/USERNAME/path/to/meteor-react-base",
30+
"is_coverage_active": true,
31+
"verbose": true
32+
}
33+
}
34+
```

package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"scripts": {
3+
"start": "meteor run",
34
"pretest": "npm run lint --silent",
4-
"test": "TEST_BROWSER_DRIVER=nightmare meteor test --once --driver-package dispatch:mocha",
5+
"test": "TEST_BROWSER_DRIVER=nightmare meteor test --once --settings settings.coverage.json --driver-package practicalmeteor:mocha",
56
"test-app": "TEST_BROWSER_DRIVER=nightmare meteor test --full-app --once --driver-package dispatch:mocha",
67
"test-watch": "meteor test --driver-package practicalmeteor:mocha",
78
"test-app-watch": "meteor test --full-app --driver-package practicalmeteor:mocha",
@@ -13,6 +14,8 @@
1314
"dependencies": {
1415
"autoprefixer": "^6.4.1",
1516
"babel-runtime": "^6.18.0",
17+
"bcrypt": "^1.0.2",
18+
"bcrypt-nodejs": "0.0.3",
1619
"classnames": "^2.2.5",
1720
"faker": "^3.1.0",
1821
"react": "^15.3.1",
@@ -34,7 +37,16 @@
3437
"meteor-node-stubs": "^0.2.3",
3538
"nightmare": "^2.10.0",
3639
"react-addons-test-utils": "^15.3.1",
37-
"shelljs": "^0.7.4"
40+
"shelljs": "^0.7.4",
41+
"bcrypt-nodejs": "0.0.3",
42+
"buffer": "^5.0.0",
43+
"chai": "^3.5.0",
44+
"codacy-coverage": "^2.0.0",
45+
"codecov.io": "^0.1.6",
46+
"coveralls": "^2.11.11",
47+
"eslint-plugin-babel": "^3.3.0",
48+
"eslint-plugin-mocha": "^4.5.1",
49+
"spacejam": "https://github.com/serut/spacejam/tarball/windows-suppport-rc4"
3850
},
3951
"eslintConfig": {
4052
"parser": "babel-eslint",

0 commit comments

Comments
 (0)