A Jasmine 2 reporter that outputs JUnit 4.x compatible results. Designed for use in CI environments that use PhantomJS to run Jasmine specs.
Download the file and place it with the rest of your Jasmine scripts.
Add the reporter to your Jasmine runner HTML:
<script src="scripts/JUnitReporter.js"></script>
<script src="scripts/JUnitReporter.boot.js"></script>
JUnitReporter.boot.js
is the glue code you need to provide to
configure and enable the reporter. It should look something like:
(function() {
var reporter = new jasmine.JUnitReporter({
outputDir: 'output/dir'
});
jasmine.getEnv().addReporter(reporter);
})();
- Fork it ( http://github.com/shepmaster/jasmine-junitreporter/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request