Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Conversation

f2prateek
Copy link
Contributor

@f2prateek f2prateek commented Jun 14, 2018

Adds a new karma configuration that can generate coverage reports that are uploaded to codecov.io.

For some reason, Safari and IE tests fail 100% of the time when code coverage is enabled (likely due to the browserify-istanbul plugin).

Rather than skip those browser or skip coverage entirely, I opted to make a new karma configuration that is exclusively used to report coverage results. This runs as a seperate job on CI and runs only on PhantomJS.

@f2prateek f2prateek requested a review from Peripheral1994 June 14, 2018 00:54
@f2prateek f2prateek force-pushed the coverage branch 18 times, most recently from 885c609 to eb5820e Compare June 20, 2018 18:54
Adds a new karma configuration that can generate coverage reports that are uploaded to codecov.io.

For some reason, Safari and IE tests fail 100% of the time when code coverage is enabled (likely due to the browserify-istanbul plugin).

Rather than skip those browser or skip coverage entirely, I opted to make a new karma configuration that is exclusively used to report coverage results. This runs as a seperate job on CI and runs only on PhantomJS.
@f2prateek
Copy link
Contributor Author

@f2prateek
Copy link
Contributor Author

cc @fathyb

- image: circleci/node:8-browsers
steps:
- checkout
- run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would be nice to be able to re-use this from the test job, but I couldn't figure out how.

@f2prateek f2prateek merged commit 96f3789 into master Jun 20, 2018
@f2prateek f2prateek deleted the coverage branch June 20, 2018 22:20
@@ -0,0 +1,44 @@
/* eslint-env node */
Copy link
Contributor

@fathyb fathyb Jun 21, 2018

Choose a reason for hiding this comment

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

Why do we need to do the coverage separately? Can't we run test with coverage enabled and then collect coverage data? RTFD 🤦‍♂️

f2prateek added a commit to segment-integrations/analytics.js-integration-segmentio that referenced this pull request Jun 12, 2019
This updates a variety of tooling we use to build and releaase the library, such as:

* Update to circle ci v2 as v1 is deprecated
* Use commitlint and commitizen to maintain clean commit history
* Update Karma configuration so we can use it with codecov to report coverage (see segmentio/analytics.js-core#75 for notes on implementation)
* Use np to simplify the releasing process
f2prateek added a commit to segment-integrations/analytics.js-integration-segmentio that referenced this pull request Jun 12, 2019
This updates a variety of tooling we use to build and releaase the library, such as:
* Update to circle ci v2 as v1 is deprecated
* Use commitlint and commitizen to maintain clean commit history
* Update Karma configuration so we can use it with codecov to report coverage (see segmentio/analytics.js-core#75 for notes on implementation)
* Use np to simplify the releasing process
f2prateek added a commit to segment-integrations/analytics.js-integration-segmentio that referenced this pull request Jun 13, 2019
This updates a variety of tooling we use to build and releaase the library, such as:
* Update to circle ci v2 as v1 is deprecated
* Use commitlint and commitizen to maintain clean commit history
* Update Karma configuration so we can use it with codecov to report coverage (see segmentio/analytics.js-core#75 for notes on implementation)
* Use np to simplify the releasing process
f2prateek added a commit to segment-integrations/analytics.js-integration-segmentio that referenced this pull request Jun 13, 2019
This updates a variety of tooling we use to build and releaase the library, such as:
* Update to circle ci v2 as v1 is deprecated
* Use commitlint and commitizen to maintain clean commit history
* Update Karma configuration so we can use it with codecov to report coverage (see segmentio/analytics.js-core#75 for notes on implementation)
* Use np to simplify the releasing process
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants