forked from xcpretty/xcpretty
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest_format.feature
49 lines (40 loc) · 1.96 KB
/
test_format.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Feature: Showing RSpec-style test output
Scenario: Showing failed tests
Given I have a failing test in my suite
When I pipe to xcpretty with "--test --no-color"
Then I should see a failed test icon
Scenario: Showing passing tests
Given I have a passing test in my suite
When I pipe to xcpretty with "--test --no-color"
Then I should see a passing test icon in ASCII
Scenario: Showing pending tests
Given I have a pending test in my suite
When I pipe to xcpretty with "--test --no-color"
Then I should see a pending test icon in ASCII
Scenario: Showing measuring tests
Given I have a measuring test in my suite
When I pipe to xcpretty with "--test --no-color"
Then I should see a measuring test icon in ASCII
Scenario: Showing some tests failed with color
Given I have a failing test in my suite
And the test suite has finished
When I pipe to xcpretty with "--test --color"
Then I should see a red failed test icon
And I should see the path of a failed test
And the final execution message should be red
Scenario: Showing passing tests with color
Given I have a passing test in my suite
When I pipe to xcpretty with "--test --color"
Then I should see a green passing test icon
Scenario: Showing pending tests with color
Given I have a pending test in my suite
When I pipe to xcpretty with "--test --color"
Then I should see a yellow pending test icon
Scenario: Showing measuring tests with color
Given I have a measuring test in my suite
When I pipe to xcpretty with "--test --color"
Then I should see a yellow measuring test icon
Scenario: Showing that all tests passed with color
Given all of my tests will pass in my suite
When I pipe to xcpretty with "--test --color"
Then the final execution message should be green