You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nothing too major. In other code bases I try make some easy integration tests that emulate typical student interactions. Then use code coverage reports to make sure I have hit 80-90% of the code.
I am using mocha.js for testing and blanketjs for code coverage. Do you have a preference as to how to include these in the project? Do you want to continue to load external libraries from a CDN or would you prefer to move these libraries into the project using Bower?
Activity
[-]Get some Unit Tests and CI on this repo...[/-][+]Get some Unit Tests and CI[/+]Bluejay47 commentedon Sep 3, 2016
I use Mocha but there are several other popular unit test systems. What did you have in mind as far as priorities for developing tests?
ccoffrin commentedon Sep 3, 2016
Nothing too major. In other code bases I try make some easy integration tests that emulate typical student interactions. Then use code coverage reports to make sure I have hit 80-90% of the code.
This is a good example,
https://github.com/discreteoptimization/assignment/blob/master/test/submit_test.py
I no nothing about JS unit testing frameworks or how to do CI outside the browser, so your experience would be much appreciated!
Bluejay47 commentedon Sep 6, 2016
Sure I can take a stab at it this weekend. Setting up the framework is fairly easy and Mocha is very straightforward.
Bluejay47 commentedon Sep 13, 2016
I am using mocha.js for testing and blanketjs for code coverage. Do you have a preference as to how to include these in the project? Do you want to continue to load external libraries from a CDN or would you prefer to move these libraries into the project using Bower?
ccoffrin commentedon Sep 17, 2016
In light of modern web tools, I am a web-dev novice; so I'll trust your judgement on this one.
My feeling is that it is best to load the libraries via a CDN. That way, it is one less tool that a would-be contributor would need to learn.
These are not mission critical tools so if the break due to an external library update that is not a huge deal.