Closed nicoespeon closed 10 years ago
Because I had spare time this morning...
U mad ^_^
@fmonniot > in fact, it would be nice to display the coverage too so we can track if we're missing something easily =)
I just have added end-to-end test BUT (yes, this is a big but) we have to dedicated a board for this one (or change tests each time we play with the current board...)
I have done all unit testing (except animation). For the end-to-end tests, I suggest to open a new issue, because it will require a little more preparation (dedicate board and mechanism to provide it in code)
As for animation, if someone wants to do it: http://www.yearofmoo.com/2013/05/enhanced-animations-in-angularjs.html#testing-animations
THX @fmonniot :+1:
I'll handle the animations testing FTW \o/ And I create the end-to-end tests on the fly. That would be for another release though.
@fmonniot > hmmm it seems that testing animations won't be easy because of Jasmine terrific way to handle asynchronous unit tests.
Still, I'll do my best to find a solution ^_^
OK. I'll look if web can use mocha/chai for testing if you want. It should be possible.
Yep, that's what I thought. If the switch is easy, it seems to be much powerful for that kind of tests =)
Well, I didn't managed to set up unit tests for animations.
There is no tutorial I found over the Internet which explains how to properly test animations with Angular 1.2 and jasmine 1.3. Plus, every tutorial / newsletter I found from Angular doesn't test animations.
For now the current coverage will be enough. We will test animations later I guess (maybe using mocha instead of jasmine?). I'll close this issue for now =)
Some resource that you can find interesting Angular tutorial source: https://github.com/angular/angular-phonecat/tree/master/test/e2e Protractor repository: https://github.com/angular/protractor