2

I am just struggeling if there is solution to do a code coverage analysis of the tested code which was executed in javascript cucumber?

Also the code coverage should be provided in the cobertura file format to embed it in our existing analysis of the backend code.

Can anyone help me on this issue?

cilap
  • 2,215
  • 1
  • 25
  • 51
  • found one similar question http://stackoverflow.com/questions/23538879/how-to-get-code-coverage-of-javascript-using-cucumber but it focuses on cucumber and not cucumber-js – cilap Feb 02 '15 at 13:35

1 Answers1

5

You should use JSCover. JSCover will provide you different types of code coverage, which you can use. The type of usage depends on your needs. I have so far had no limitations with using JSCover on any js project. See also the JSCoverManual.

Nick Dickinson-Wilde
  • 1,015
  • 2
  • 15
  • 21