Real time console spec reporter for jasmine behavior-driven development testing framework.
Install jasmine-spec-reporter
via npm:
npm install jasmine-spec-reporter --save-dev
You can customize the output of the reporter yourself: see how.
{
displayStacktrace: 'none', // display stacktrace for each failed assertion, values: (all|specs|summary|none)
displaySuccessesSummary: false, // display summary of all successes after execution
displayFailuresSummary: true, // display summary of all failures after execution
displayPendingSummary: true, // display summary of all pending specs after execution
displaySuccessfulSpec: true, // display each successful spec
displayFailedSpec: true, // display each failed spec
displayPendingSpec: false, // display each pending spec
displaySpecDuration: false, // display each spec duration
displaySuiteNumber: false, // display each suite number (hierarchical)
colors: {
success: 'green',
failure: 'red',
pending: 'yellow'
},
prefixes: {
success: '✓ ',
failure: '✗ ',
pending: '* '
},
customProcessors: []
}
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
.
To use Jasmine spec reporter with Jasmine 1.x, please see jasmine1 branch.
- install dependencies:
npm install
- launch all unit tests:
npm test
- launch an output example:
npm run example
- launch a protractor example:
npm run webdriver-update # if needed
npm run webdriver-start
npm run protractor-example