jasmine-headless-webkit/features/reporters.feature

25 lines
926 B
Gherkin
Raw Normal View History

2011-12-29 23:37:23 +00:00
Feature: Reporters
In order to allow for multiple types of output
I should be able to
Manage reporters and decide which ones to use
Scenario: Use default reporters
Given I have the default runner options
When I get a runner
And I get a template writer
Then the template should use the "HeadlessConsoleReporter" reporter to "stdout"
And the command to run the runner should not include a report file
Scenario: Use a file reporter
Given I have the default runner options
And I have the following reporters:
| Name | File |
| ConsoleReporter | |
| FileReporter | file |
When I get a runner
And I get a template writer
Then the template should use the "ConsoleReporter" reporter to "stdout"
And the template should use the "FileReporter" reporter to "report:0"
And the command to run the runner should include the report file "file"