reselect icon indicating copy to clipboard operation
reselect copied to clipboard

test coverage tool

Open faassen opened this issue 11 years ago • 5 comments

Does anyone know a good test coverage tool? This way we can make sure we have full coverage of our code.

faassen avatar Jul 06 '15 21:07 faassen

Istanbul? https://github.com/gotwarlost/istanbul

ellbee avatar Jul 06 '15 21:07 ellbee

I have absolutely no experience with coverage tools in the JS world yet, so Instanbul sounds fine to me. The most important thing is that it doesn't get confused by babel ES6 transpilation, I think.

faassen avatar Jul 07 '15 07:07 faassen

Ahah: https://github.com/ambitioninc/babel-istanbul

faassen avatar Jul 07 '15 10:07 faassen

I copied the test coverage script from redux. Our current status:

Statements : 100% ( 35/35 ), 1 ignored Branches : 100% ( 8/8 ), 1 ignored Functions : 100% ( 11/11 ) Lines : 100% ( 24/24 )

ellbee avatar Jul 20 '15 21:07 ellbee

Yay! I had to wipe my node_modules and do another npm install, but after that it all just worked.

We should document the basic commands we offer somewhere so that people know what's available.

faassen avatar Jul 21 '15 09:07 faassen