SerenityReporterForJasmine
Jasmine reporter that translates Jasmine-specific test events to Serenity/JS events.
Tests:
See also:
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
jasmineDone(suiteInfo: JasmineDoneInfo): * |
|
public |
specDone(result: SpecResult): Promise |
|
public |
specStarted(result: SpecResult) |
|
public |
suiteDone(result: SuiteResult) |
|
public |
suiteStarted(result: SuiteResult) |
Public Constructors
public constructor() source
Public Methods
public jasmineDone(suiteInfo: JasmineDoneInfo): * source
Params:
Name | Type | Attribute | Description |
suiteInfo | JasmineDoneInfo |
Returns:
* |
public specDone(result: SpecResult): Promise source
Params:
Name | Type | Attribute | Description |
result | SpecResult |
Returns:
Promise |
Tests:
- SerenityReporterForJasmine notifies Serenity when the test spec starts and derives the name of the scenario from the nested `describe` blocks
- SerenityReporterForJasmine notifies Serenity when the test spec starts and derives the name of the feature from the outer-most `describe` block
- SerenityReporterForJasmine notifies Serenity when the test spec starts and detects the test runner
- SerenityReporterForJasmine notifies Serenity when the test spec ends and has been excluded
- SerenityReporterForJasmine notifies Serenity when the test spec ends and is marked as pending
- SerenityReporterForJasmine notifies Serenity when the test spec ends and has failed with an error
- SerenityReporterForJasmine notifies Serenity when the test spec ends and has failed with no stack trace
- SerenityReporterForJasmine notifies Serenity when the test spec ends and has failed with an assertion error
- SerenityReporterForJasmine notifies Serenity when the test spec ends and has failed with multiple errors
- SerenityReporterForJasmine notifies Serenity when the `it` block is not nested within a `describe` block and tags the feature as "unknown"
- SerenityReporterForJasmine notifies Serenity when the `it` block is not nested within a `describe` block and correctly derives the name of the spec
public specStarted(result: SpecResult) source
Params:
Name | Type | Attribute | Description |
result | SpecResult |
Tests:
- SerenityReporterForJasmine notifies Serenity when the test spec starts and derives the name of the scenario from the nested `describe` blocks
- SerenityReporterForJasmine notifies Serenity when the test spec starts and derives the name of the feature from the outer-most `describe` block
- SerenityReporterForJasmine notifies Serenity when the test spec starts and detects the test runner
- SerenityReporterForJasmine notifies Serenity when the `it` block is not nested within a `describe` block and tags the feature as "unknown"
- SerenityReporterForJasmine notifies Serenity when the `it` block is not nested within a `describe` block and correctly derives the name of the spec
public suiteDone(result: SuiteResult) source
Params:
Name | Type | Attribute | Description |
result | SuiteResult |
Tests:
- SerenityReporterForJasmine notifies Serenity when the test spec starts and derives the name of the scenario from the nested `describe` blocks
- SerenityReporterForJasmine notifies Serenity when the test spec starts and derives the name of the feature from the outer-most `describe` block
- SerenityReporterForJasmine notifies Serenity when the test spec starts and detects the test runner
- SerenityReporterForJasmine notifies Serenity when the test suite ends
- SerenityReporterForJasmine notifies Serenity when the test suite ends with an error, reporting the first error that has occurred
- SerenityReporterForJasmine notifies Serenity when the test suite is pending
public suiteStarted(result: SuiteResult) source
Params:
Name | Type | Attribute | Description |
result | SuiteResult |
Tests:
- SerenityReporterForJasmine notifies Serenity when the test spec starts and derives the name of the scenario from the nested `describe` blocks
- SerenityReporterForJasmine notifies Serenity when the test spec starts and derives the name of the feature from the outer-most `describe` block
- SerenityReporterForJasmine notifies Serenity when the test spec starts and detects the test runner
- SerenityReporterForJasmine notifies Serenity when the test suite starts
- SerenityReporterForJasmine notifies Serenity when the test suite ends
- SerenityReporterForJasmine notifies Serenity when the test suite ends with an error, reporting the first error that has occurred
- SerenityReporterForJasmine notifies Serenity when the test suite is pending