-
Notifications
You must be signed in to change notification settings - Fork 31
Question: which reporter to use for jasmine-ts to file? #23
Comments
It depends on what reporter you would like to use, I use a JUnit reporter from the package jasmine-reporters. To use the reporter you need to use a helper file and then initialize the reporter in the helper file:
|
Version 0.3.2 support the |
How to use the |
As described in the jasmine documentation. :) Prior to 0.3.2 The jasmine documentation is not perfect, it does not mention how to provide the
The common practice is you define a helper file const { SpecReporter } = require('jasmine-spec-reporter')
jasmine.getEnv().clearReporters()
jasmine.getEnv().addReporter(new SpecReporter({
prefixes: {
failed: ':( ',
pending: '? ',
successful: ':) '
}
}
)) Finally, I try to answer to your question:
// custom-reporter.js
const { SpecReporter } = require('jasmine-spec-reporter')
class CustomReporter extends SpecReporter {
constructor() {
super({
prefixes: {
failed: ':( ',
pending: '? ',
successful: ':) '
}
});
}
}
module.exports = CustomReporter I think the There are 2 open PR (jasmine/jasmine-npm#77 , jasmine/jasmine-npm#159) in the |
So that I can see the report in Jenkins for example.
This is what I currently have, no report files produced, what should I use to produce report files (preferably readable by Jenkins..)
Thanks.
The text was updated successfully, but these errors were encountered: