You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<span>Then no money is dispensed [Exception Message: 'Boom']</span>
106
106
<div class='step FailedException' id='step-3-3'>
107
-
<code> at TestStack.BDDfy.Tests.Reporters.ReportTestData.GetScenarios(Boolean includeFailingScenario, Boolean includeExamples) in ...\ReportTestData.cs:line 65</code>
107
+
<code> at TestStack.BDDfy.Tests.Reporters.ReportTestData.GetScenarios(Boolean includeFailingScenario, Boolean includeExamples) in ...\ReportTestData.cs:line 90</code>
Copy file name to clipboardExpand all lines: TestStack.BDDfy.Tests/Reporters/Html/ClassicReportBuilderTests.ShouldProduceExpectedHtmlWithExamples.approved.txt
<code> at TestStack.BDDfy.Tests.Reporters.ReportTestData.GetScenarios(Boolean includeFailingScenario, Boolean includeExamples) in ...\ReportTestData.cs:line 88</code>
116
+
<code> at TestStack.BDDfy.Tests.Reporters.ReportTestData.GetScenarios(Boolean includeFailingScenario, Boolean includeExamples) in ...\ReportTestData.cs:line 113</code>
Copy file name to clipboardExpand all lines: TestStack.BDDfy.Tests/Reporters/Html/MetroReportBuilderTests.ShouldProduceExpectedHtmlWithExamples.approved.txt
<code> at TestStack.BDDfy.Tests.Reporters.ReportTestData.GetScenarios(Boolean includeFailingScenario, Boolean includeExamples) in ...\ReportTestData.cs:line 88</code>
127
+
<code> at TestStack.BDDfy.Tests.Reporters.ReportTestData.GetScenarios(Boolean includeFailingScenario, Boolean includeExamples) in ...\ReportTestData.cs:line 113</code>
varstoryMetadata1=newStoryMetadata(typeof(RegularAccountHolderStory),"As a person","I want ice cream","So that I can be happy","Happiness");
46
-
varstoryMetadata2=newStoryMetadata(typeof(GoldAccountHolderStory),"As an account holder","I want to withdraw cash","So that I can get money when the bank is closed","Account holder withdraws cash");
46
+
varstoryMetadata2=newStoryMetadata(typeof(GoldAccountHolderStory),"As an unhappy examples story","I want to see failed steps","So that I can diagnose what's wrong","Unhappy examples");
47
+
varstoryMetadata3=newStoryMetadata(typeof(PlatinumAccountHolderStory),"As a happy examples story","I want a clean report with examples","So that the report is clean and readable","Happy Examples");
Copy file name to clipboardExpand all lines: TestStack.BDDfy.Tests/Reporters/TextReporter/TextReporterTests.ShouldProduceExpectedReport.approved.txt
+30-42Lines changed: 30 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Scenario: Sad Path Scenario [for Happiness]
21
21
22
22
Exceptions:
23
23
1. Boom
24
-
at TestStack.BDDfy.Tests.Reporters.ReportTestData.GetFailingExecutionSteps() in c:\_mine\Code\TestStack\TestStack.BDDfy\TestStack.BDDfy.Tests\Reporters\ReportTestData.cs:line 203
24
+
at TestStack.BDDfy.Tests.Reporters.ReportTestData.GetFailingExecutionSteps() in ...\ReportTestData.cs
25
25
26
26
27
27
Story: Happiness
@@ -46,83 +46,71 @@ Scenario: Not Implemented Scenario [for Happiness]
Scenario: Sad Path Scenario [for Account holder withdraws cash]
57
+
Scenario: Sad Path Scenario [with no story]
66
58
Given a negative account balance [Passed]
67
59
When the account holder requests money [Passed]
68
60
Then no money is dispensed [Failed] [Boom] [Details at 1 below]
69
61
70
62
Exceptions:
71
63
1. Boom
72
-
at TestStack.BDDfy.Tests.Reporters.ReportTestData.GetFailingExecutionSteps() in c:\_mine\Code\TestStack\TestStack.BDDfy\TestStack.BDDfy.Tests\Reporters\ReportTestData.cs:line 203
64
+
at TestStack.BDDfy.Tests.Reporters.ReportTestData.GetFailingExecutionSteps() in ...\ReportTestData.cs
Scenario: Not Implemented Scenario [for Account holder withdraws cash]
75
+
Scenario: Not Implemented Scenario [with no story]
92
76
Given a negative account balance [Passed]
93
77
When the account holder requests money [Passed]
94
78
Then no money is dispensed [Not implemented]
95
79
96
80
81
+
Story: Unhappy examples
82
+
As an unhappy examples story
83
+
I want to see failed steps
84
+
So that I can diagnose what's wrong
97
85
98
-
Scenario: Happy Path Scenario [with no story]
99
-
Given a positive account balance
86
+
Scenario: Example Scenario
87
+
Given a <sign> account balance
100
88
When the account holder requests money
101
-
Then money is dispensed
102
-
103
-
89
+
Then money <action> dispensed
104
90
105
-
Scenario: Sad Path Scenario [with no story]
106
-
Given a negative account balance [Passed]
107
-
When the account holder requests money [Passed]
108
-
Then no money is dispensed [Failed] [Boom] [Details at 1 below]
91
+
Examples:
92
+
| sign | action | Result | Errors |
93
+
| positive | is | Passed | |
94
+
| negative | is not | Failed | Step: Then money <action> dispensed failed with exception: [Boom] [Details at 1 below] |
109
95
110
96
Exceptions:
111
97
1. Boom
112
-
at TestStack.BDDfy.Tests.Reporters.ReportTestData.GetFailingExecutionSteps() in c:\_mine\Code\TestStack\TestStack.BDDfy\TestStack.BDDfy.Tests\Reporters\ReportTestData.cs:line 203
113
-
114
-
98
+
at TestStack.BDDfy.Tests.Reporters.ReportTestData.GetScenarios(Boolean includeFailingScenario, Boolean includeExamples) in ...\ReportTestData.cs
115
99
116
-
Scenario: Inconclusive Scenario [with no story]
117
-
Given a negative account balance [Passed]
118
-
When the account holder requests money [Passed]
119
-
Then no money is dispensed [Inconclusive]
120
100
101
+
Story: Happy Examples
102
+
As a happy examples story
103
+
I want a clean report with examples
104
+
So that the report is clean and readable
121
105
106
+
Scenario: Example Scenario
107
+
Given a <sign> account balance
108
+
When the account holder requests money
109
+
Then money <action> dispensed
122
110
123
-
Scenario: Not Implemented Scenario [with no story]
0 commit comments