Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Test framework has been created using Karma/Mocha/Chai/Sinon/PhantomJS (SauceLabs for CI is in the works). Tests should be added under the
test/
directory. Any test fixtures that you may create should be placed undertest/fixtures/
. A sample test file has been created verifying some behaviors of the Checkbox component (this is intentionally not complete -- I wanted to get this out to the community so that we can all start contributing tests). Tests will be written in ES6 and transpiled to ES5.Test coverage is handled by Istanbul. However, Istanbul has a bug that is currently preventing it from generating HTML reports so we'll need to depend upon something that can process the LCOV reports (travis). Test results (pass/fail) and coverage summaries are dumped to the console (a detailed text report is also generated under the
coverage\
directory).To have Karma watch your test files, run
npm run test-watch
. To perform a single run, executenpm test
. If we want to integrate Karma with Gulp, we can do that. I chose not to because it is trivial to run the tests and I did not want to incur the overhead of spinning up/down Karma's server.Note that a browser-polyfill is required for PhantomJS 1.9.X.
Resolves #396