What code quality / code coverage tools are available for Jasmine?
Working in Rails 3.2.2.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You may be able to use a combination of JsTestDriver and this Jasmine adapter to get coverage metrics.
JSCoverage is a C based tool that you run out of band from the command line..
JesCov is a Java solution that supports Jasmine. You can run it from the command line, so it should be fairly straight forward to integrate with Rails if the system has a JRE:
java -jar jescov-0.0.1.jar one.js two.js three.jsI looked into JesCov several months ago for a Grails project, but never actually tried it out, so I’d be interested in hearing your experience if you do try it.