Update signature of CustomReporterResult
to fix collision with new jasmine properties
Before:
export interface CustomReporterResult extends jasmine.CustomReporterResult {
duration?: string;
}
Now:
export interface CustomReporterResult extends jasmine.CustomReporterResult {
_jsr?: {
formattedDuration?: string;
};
}
String prototype does not contain color properties anymore, colors must now be applied with the new theme
component available as a field in custom display processors.
Before:
class MyProcessor extends DisplayProcessor {
public displaySuccessfulSpec(spec: CustomReporterResult, log: string): string {
return "OK ".successful + log;
}
}
Now:
class MyProcessor extends DisplayProcessor {
public displaySuccessfulSpec(spec: CustomReporterResult, log: string): string {
return this.theme.successful("OK ") + log;
}
}
displayStacktrace
options now take a value among none
, raw
and pretty
.
greenkeeper-yarn.sh
to automatically updates yarn.lock on greenkeeper PRIt only impacts TypeScript integrations, DisplayProcessor
methods signature now use string
instead of String
.
Before:
displaySuite(suite: CustomReporterResult, log: String): String;
Now:
displaySuite(suite: CustomReporterResult, log: string): string;
displaySpecErrorMessages
and displaySummaryErrorMessages
to DisplayProcessor #85jasmine-spec-reporter
module exports SpecReporter
and DisplayProcessor
, see SpecReporter and DisplayProcessor usages.Colors deactivation is now achieved with this configuration:
{
colors: {
enabled: false
}
}
Custom options for custom processors must now be stored in this configuration field:
{
customOptions: {
foo: 'bar'
}
}
Ensure that colors are always enabled. #36
fdescribe
and fit
. #37stacktrace: displayStacktrace
option has now 4 modes available #26:
processor:
displayJasmineStarted
hookdisplaySpecStarted
hook #23displayStacktrace: true
is not working anymore. You will have to choose the displayStacktrace mode that suits you best.
When a suite or spec is focused, it displays the total of specs defined and the number of skipped specs #11
Add support for jasmine 2.x #10
Jasmine 1.x is not supported by this version
Skipped specs are not displayable in favour of pending specs.
stacktrace: displayStacktrace
option has now 4 modes available:
processor: add displayJasmineStarted
hook
displayStacktrace: true
is not working anymore. You will have to choose the displayStacktrace mode that suits you best.
Add message when reporter 1.x is used with jasmine > 1.x
Fixes error when the stacktrace is undefined #22
Add suite number option #19
Add customProcessors option #18
Jasmine spec reporter is no more added to the jasmine object. So, make sure to use it like it is described in the usage section.
Display failures summary #13
Add option to disable colors #4
Add option to overwrite color theme #5
Add option to include skipped specs #2
Add option to display spec duration #6
Display human readable duration #9
Added a hack procedure to remove dot reporter #8
Add options to exclude successful / failed specs #3
Add option to include stack trace on failure #1
First version with unit tests