-
Notifications
You must be signed in to change notification settings - Fork 57
Tests #187
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
base: master
Are you sure you want to change the base?
Tests #187
Conversation
Lower minimum coverage to avoid failures. Change lib used to set ENV to allow building on older Node versions.
|
Hm, the issue seems to be that much of the ancient stack is not supported on old Node versions. @robertjd @typerandom are these old versions really necessary anymore? The bare-bones build process works there, we know as much, but I cannot seem to find decent replacements for some of the dev tools here, which require Node >= 4. Any change we could migrate Travis to test 4, 6 and 7? We're just pushing a built library anyway. Everything works fine on version 4+. Also, I added just some basic text examples for every type of object in the app. I can either test everything, but that will take a while, or we can go with a policy of adding tests when you touch something (and appropriately moving the minimum coverage percentage up as we go). |
Adds support for testing the SDK, including React components, through mocha and chai.
Adds coverage reporting via
nyc.Adds some tests for the basic building blocks of the SDK, allowing them to be used as an example for writing tests in the future.
Adds two modes of running tests:
npm run testfor one-time test run + coverage reportingnpm run test:watchfor running tests in watch mode, to be used in developmentFixes #7