0.0.2 • Published 11 years ago
jasmine-fauxpas-reporter v0.0.2
jasmine-fauxpas-reporter
Real time console reporter for faux.
Usage
Default options
{
  displayStacktrace: false,     // display stacktrace for each failed assertion
  displayFailuresSummary: true, // display summary of all failures after execution
  displaySuccessfulSpec: true,  // display each successful spec
  displayFailedSpec: true,      // display each failed spec
  displaySkippedSpec: false,    // display each skipped spec
  displaySpecDuration: false,   // display each spec duration
  colors: {
    success: 'green',
    failure: 'red',
    skipped: 'cyan'
  },
  prefixes: {
    success: '✓ ',
    failure: '✗ ',
    skipped: '- '
  }
}Colors are displayed in the console via colors, you can see all available colors on the project page.
You can also disable colors with the option: colors: false.
Protractor
The jasmine-fauxpas-reporter can be used to enhance your Protractor tests execution report.
Install jasmine-fauxpas-reporter via npm:
npm install jasmine-fauxpas-reporter --save-devUse it in your Protractor configuration file:
exports.config = {
   // your config here ...
   onPrepare: function() {
      require('jasmine-fauxpas-reporter');
      // add jasmine spec reporter
      jasmine.getEnv().addReporter(new jasmine.FauxpasReporter({displayStacktrace: true}));
   }
}Remove protractor dot reporter
For protractor >= 1.0.0-rc2
In your protractor configuration file, add the silent option in the jasmineNodeOpts section:
jasmineNodeOpts: {
   ...
   silent: true
}Developement
- install dependencies: npm install
- launch all unit tests: npm test
- launch an output example: npm run example