Jest finds tests but doesn’t collect coverage
I trying to collect test coverage for this project using
I trying to collect test coverage for this project using
I’m trying to integrate my existing test processes to now include React, but am struggling on the code coverage part. I’ve been able to get my unit tests working fine by following this project/tutorial – https://github.com/danvk/mocha-react – http://www.hammerlab.org/2015/02/14/testing-react-web-apps-with-mocha/
I’m having some issues while running Istanbul with Mocha and the Babel compiler.
I have a JS project that provides a set of endpoints leveraging Express with a typical express/router pattern.
I have a Jenkins project to do SonarQube analysis of my NodeJS project. I added istanbul
as a dependency to my project’s package.json
. In the Jenkins build configuration, first I run a shell script:
Currently Istanbul is only generating coverage for files that are used in my tests, which is okay, but seems to defeat the purpose of having coverage somewhat.