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

Use nyc to allow coverage of es6 syntax #32

Merged
merged 2 commits into from
Mar 22, 2018
Merged

Conversation

philsturgeon
Copy link
Contributor

@philsturgeon philsturgeon commented Mar 21, 2018

Swapped istanbul for nyc, which is newer and supports ES6 syntax. This will stop coveralls simply ignoring any files like lib/loader.js which contain syntax it's not happy about.

screen shot 2018-03-21 at 5 51 18 pm

@coveralls
Copy link

Coverage Status

Coverage decreased (-2.9%) to 58.589% when pulling 86a6da5 on fixed-circle-coverage into 44dfddb on master.

@coveralls
Copy link

coveralls commented Mar 21, 2018

Coverage Status

Coverage decreased (-0.6%) to 60.89% when pulling 2efa2e4 on fixed-circle-coverage into 44dfddb on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-2.9%) to 58.589% when pulling 86a6da5 on fixed-circle-coverage into 44dfddb on master.

@@ -1,70 +1,69 @@
{
"name": "speccy",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bah, sorry. Indentation was inconsistent and broken, and my editor decided to "fix it".

Only lines changed were:

-    "test": "mocha",
-    "cover": "istanbul cover _mocha",
-    "coveralls": "npm run cover -- --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls"
+        "test": "nyc --reporter=html --reporter=text mocha",
+        "coverage": "nyc report --reporter=text-lcov | coveralls"

Also swapped out the old "istanbul" for "nyc".

Copy link
Contributor

@dangoosby dangoosby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and CircleCI passed. 👍

@philsturgeon philsturgeon merged commit f7c6ccb into master Mar 22, 2018
@philsturgeon philsturgeon deleted the fixed-circle-coverage branch March 22, 2018 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants