istanbul

How do I read an Istanbul Coverage Report?

南笙酒味 提交于 2019-11-28 13:18:54
问题 I've always used Jasmine for my unit tests, but recently I started using Istanbul to give me code coverage reports. I mean I get the gist of what they are trying to tell me, but I don't really know what each of these percentages represent (Stmts, Branches, Funcs, Lines). So far Googling I have been unable to find a solid explanation/resource. Question : Like I said I get the gist of it, but can someone post either a proper explanation or a link to a proper explanation? Tertiary Question : Is

Running Mocha + Istanbul + Babel

冷暖自知 提交于 2019-11-28 03:39:31
I'm having some issues while running istanbul with mocha and the babel compiler.. all my tests are runnning just fine, but after all the tests done it shows me this message: No coverage information was collected, exit without writing coverage information And it is not producing any coverage report.. The command that Im running is: NODE_ENV=test istanbul cover _mocha -- --require babel-core/register --recursive the project is hosted in github: https://github.com/weslleyaraujo/react-flux-puzzle/tree/feat/unit-tests-24 any ideas what it could be? Using Babel 6.x, let's say we have file test/pad

Running Mocha + Istanbul + Babel

泄露秘密 提交于 2019-11-27 00:12:19
问题 I'm having some issues while running istanbul with mocha and the babel compiler.. all my tests are runnning just fine, but after all the tests done it shows me this message: No coverage information was collected, exit without writing coverage information And it is not producing any coverage report.. The command that Im running is: NODE_ENV=test istanbul cover _mocha -- --require babel-core/register --recursive the project is hosted in github: https://github.com/weslleyaraujo/react-flux-puzzle