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

chore: Convert some tap tests to run parallel and use snapshots. #1075

Merged
merged 14 commits into from
Apr 24, 2019

Conversation

coreyfarrell
Copy link
Member

@coreyfarrell coreyfarrell commented Apr 18, 2019

No description provided.

@coveralls
Copy link

coveralls commented Apr 18, 2019

Coverage Status

Coverage remained the same at 96.82% when pulling 8239cb8 on coreyfarrell:snap into 85c1eac on istanbuljs:master.

@coreyfarrell coreyfarrell requested review from bcoe and JaKXz April 18, 2019 21:46
Copy link
Member

@JaKXz JaKXz left a comment

Choose a reason for hiding this comment

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

@bcoe just one question for you! otherwise I think this is amazing [ignoring my pedantry].

package.json Show resolved Hide resolved
Create `npm run lint`, recreate `npm run report`.
package.json Outdated Show resolved Hide resolved
@coreyfarrell
Copy link
Member Author

@JaKXz @bcoe I've made a few tweaks, mainly moving some code from the test file to helpers. Partly this is due to the test @isaacs posted in #1077 made me realize that we might want to share more code. One internal behavior change instead of adding stdio chunks directly to a string I'm now using an array of buffers and Buffer.concat at the end. In theory this shouldn't have an effect but I just like the code better (saw it in #1077).

isaacs added a commit to tapjs/tapjs that referenced this pull request Apr 19, 2019
isaacs added a commit to tapjs/tapjs that referenced this pull request Apr 22, 2019
Copy link
Member

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

I'm really excited about this, just a few nits.

test/helpers/run-nyc.js Show resolved Hide resolved
test/nyc-integration-snap.js Outdated Show resolved Hide resolved
* Split helpers into individual files, create index.js to export
everything useful to tests.
* Rename test files - nyc-integration-old.js for tests that have not
been migrated, nyc-integration.js for tests which have been migrated.
@coreyfarrell coreyfarrell merged commit 600c867 into istanbuljs:master Apr 24, 2019
@coreyfarrell coreyfarrell deleted the snap branch April 24, 2019 10:24
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

5 participants