Skip to content

Tests for ./scripts/release-post.js #193

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

Merged
merged 1 commit into from
Sep 25, 2015

Conversation

phillipj
Copy link
Member

Created a test suite for the ever growing release blog post script, with a mix of:

  • tape for running tests
  • nock for overriding network responses
  • proxyquire for mocking require()-d modules
  • sinon for spying on calls made on fake callbacks

This doesnt make the script 100% covered with tests, although it's a start and ensures most of the current behavior still works when doing changes in the future.

Any thoughts about chosen frameworks or tests?

Created a test suite for the ever growing release
blog post script, with a mix of:

* tape for running tests
* nock for overriding network responses
* proxyquire for mocking `require()`-d modules
* sinon for spying on calls made on fake callbacks
@fhemberger
Copy link
Contributor

Haven't worked with tape before (usually using hapi's lab, which includes code coverage as well), but I'm fine with whatever works. And as you are the first one who wrote tests at all, I'm grateful for having them. ;)

@fhemberger fhemberger merged commit d6e4be6 into nodejs:master Sep 25, 2015
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.

2 participants