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
Use karma-browserify for tests. Add browser test coverage reporter. #1376
Conversation
Can you use Don't we still need to remove nikku/karma-browserify#91 + a new release of |
Ah. I didn't even notice the test failed. Sorry. And now that I see it I have actually run into the issue before, hehe. Nice work on patching so quickly!
No. test-browser.js will never get built with this change. It was the bundled version of test.js and now if we use karma-browserify it will get built in a temp file in the os temp dir (as you probably got from the referenced issue). The reason I added rm coverage instead is because there is a js file in there that messes with the linting. Also, we don't want that in the repo or npm. So there's the question: Should we add it to .npmignore .eslintignore and .gitignore? Updated dependency syntax in a new commit. Will probably fail testing again though, so better leave this open pending the issue above? For reference: The reason I locked karma-coverage to version 0.2.6 is this issue: karma-runner/karma-coverage#123 |
Yeah, let's ignore it and get rid of the |
51d82ba
to
695fbeb
Compare
695fbeb
to
c2c1fdf
Compare
Added coverage to .npmignore (it was already in .gitignore). Removed clean script. You are right, we do specify paths explicitly for eslint, so no worries there. |
|
done! |
👍 thanks! |
Use karma-browserify for tests. Add browser test coverage reporter.
Hey.
So I started writing some more browser tests. But before I did that, I wanted to make the test runner to compile browserify by itself, and also add some coverage checking (to make it easier to write tests).
This PR does the following:
I have some follow up questions about how we should structure the actual test suite, but let's do that in another issue.