Skip to content

A Jasmine 2 reporter that outputs JUnit 4.x compatible results when used with PhantomJS.

License

Notifications You must be signed in to change notification settings

shepmaster/jasmine-junitreporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Jasmine JUnitReporter

A Jasmine 2 reporter that outputs JUnit 4.x compatible results. Designed for use in CI environments that use PhantomJS to run Jasmine specs.

Installation

Download the file and place it with the rest of your Jasmine scripts.

Usage

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);
})();

Contributing

  1. Fork it ( http://github.com/shepmaster/jasmine-junitreporter/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

A Jasmine 2 reporter that outputs JUnit 4.x compatible results when used with PhantomJS.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published