@@ -19,49 +19,49 @@ namespace cucumber_cpp::library::report
1919 {
2020 testing::internal::CaptureStdout ();
2121 stdOutReport.FeatureStart (contextManagerInstance.FeatureContext ().info );
22- const auto stdout { testing::internal::GetCapturedStdout () };
23- EXPECT_THAT (stdout , testing::StrEq (" " ));
22+ const auto capture { testing::internal::GetCapturedStdout () };
23+ EXPECT_THAT (capture , testing::StrEq (" " ));
2424 }
2525
2626 TEST_F (TestStdOutReport, FeatureEndPrintNothing)
2727 {
2828 testing::internal::CaptureStdout ();
2929 stdOutReport.FeatureEnd ({}, contextManagerInstance.FeatureContext ().info , {});
30- const auto stdout { testing::internal::GetCapturedStdout () };
31- EXPECT_THAT (stdout , testing::StrEq (" " ));
30+ const auto capture { testing::internal::GetCapturedStdout () };
31+ EXPECT_THAT (capture , testing::StrEq (" " ));
3232 }
3333
3434 TEST_F (TestStdOutReport, RuleStart)
3535 {
3636 testing::internal::CaptureStdout ();
3737 stdOutReport.RuleStart (contextManagerInstance.RuleContext ().info );
38- const auto stdout { testing::internal::GetCapturedStdout () };
39- EXPECT_THAT (stdout , testing::StrEq (" " ));
38+ const auto capture { testing::internal::GetCapturedStdout () };
39+ EXPECT_THAT (capture , testing::StrEq (" " ));
4040 }
4141
4242 TEST_F (TestStdOutReport, RuleEndPrintNothing)
4343 {
4444 testing::internal::CaptureStdout ();
4545 stdOutReport.RuleEnd ({}, contextManagerInstance.RuleContext ().info , {});
46- const auto stdout { testing::internal::GetCapturedStdout () };
47- EXPECT_THAT (stdout , testing::StrEq (" " ));
46+ const auto capture { testing::internal::GetCapturedStdout () };
47+ EXPECT_THAT (capture , testing::StrEq (" " ));
4848 }
4949
5050 TEST_F (TestStdOutReport, ScenarioStart)
5151 {
5252 testing::internal::CaptureStdout ();
5353 stdOutReport.ScenarioStart (contextManagerInstance.ScenarioContext ().info );
54- const auto stdout { testing::internal::GetCapturedStdout () };
55- EXPECT_THAT (stdout , testing::StrEq (" \n ScenarioInfo" ));
54+ const auto capture { testing::internal::GetCapturedStdout () };
55+ EXPECT_THAT (capture , testing::StrEq (" \n ScenarioInfo" ));
5656 }
5757
5858 TEST_F (TestStdOutReport, ScenarioEndPassed)
5959 {
6060 testing::internal::CaptureStdout ();
6161 stdOutReport.ScenarioEnd (engine::Result::passed, contextManagerInstance.ScenarioContext ().info , {});
62- const auto stdout { testing::internal::GetCapturedStdout () };
63- EXPECT_THAT (stdout , testing::HasSubstr (" \n\\ ->" ));
64- EXPECT_THAT (stdout , testing::HasSubstr (" done (0ns)" ));
62+ const auto capture { testing::internal::GetCapturedStdout () };
63+ EXPECT_THAT (capture , testing::HasSubstr (" \n\\ ->" ));
64+ EXPECT_THAT (capture , testing::HasSubstr (" done (0ns)" ));
6565 }
6666
6767 TEST_F (TestStdOutReport, ScenarioEndPassedTimeScale)
@@ -70,8 +70,8 @@ namespace cucumber_cpp::library::report
7070 {
7171 testing::internal::CaptureStdout ();
7272 stdOutReport.ScenarioEnd (engine::Result::passed, contextManagerInstance.ScenarioContext ().info , duration);
73- const auto stdout { testing::internal::GetCapturedStdout () };
74- EXPECT_THAT (stdout , testing::HasSubstr (time));
73+ const auto capture { testing::internal::GetCapturedStdout () };
74+ EXPECT_THAT (capture , testing::HasSubstr (time));
7575 };
7676
7777 testDuration (std::chrono::nanoseconds{ 1 }, " 1ns" );
@@ -86,78 +86,78 @@ namespace cucumber_cpp::library::report
8686 {
8787 testing::internal::CaptureStdout ();
8888 stdOutReport.ScenarioEnd (engine::Result::skipped, contextManagerInstance.ScenarioContext ().info , {});
89- const auto stdout { testing::internal::GetCapturedStdout () };
90- EXPECT_THAT (stdout , testing::HasSubstr (" \n\\ ->" ));
91- EXPECT_THAT (stdout , testing::HasSubstr (" skipped (0ns)" ));
89+ const auto capture { testing::internal::GetCapturedStdout () };
90+ EXPECT_THAT (capture , testing::HasSubstr (" \n\\ ->" ));
91+ EXPECT_THAT (capture , testing::HasSubstr (" skipped (0ns)" ));
9292 }
9393
9494 TEST_F (TestStdOutReport, ScenarioEndPending)
9595 {
9696 testing::internal::CaptureStdout ();
9797 stdOutReport.ScenarioEnd (engine::Result::pending, contextManagerInstance.ScenarioContext ().info , {});
98- const auto stdout { testing::internal::GetCapturedStdout () };
99- EXPECT_THAT (stdout , testing::HasSubstr (" \n\\ ->" ));
100- EXPECT_THAT (stdout , testing::HasSubstr (" pending (0ns)" ));
98+ const auto capture { testing::internal::GetCapturedStdout () };
99+ EXPECT_THAT (capture , testing::HasSubstr (" \n\\ ->" ));
100+ EXPECT_THAT (capture , testing::HasSubstr (" pending (0ns)" ));
101101 }
102102
103103 TEST_F (TestStdOutReport, ScenarioEndUndefined)
104104 {
105105 testing::internal::CaptureStdout ();
106106 stdOutReport.ScenarioEnd (engine::Result::undefined, contextManagerInstance.ScenarioContext ().info , {});
107- const auto stdout { testing::internal::GetCapturedStdout () };
108- EXPECT_THAT (stdout , testing::HasSubstr (" \n\\ ->" ));
109- EXPECT_THAT (stdout , testing::HasSubstr (" undefined (0ns)" ));
107+ const auto capture { testing::internal::GetCapturedStdout () };
108+ EXPECT_THAT (capture , testing::HasSubstr (" \n\\ ->" ));
109+ EXPECT_THAT (capture , testing::HasSubstr (" undefined (0ns)" ));
110110 }
111111
112112 TEST_F (TestStdOutReport, ScenarioEndAmbiguous)
113113 {
114114 testing::internal::CaptureStdout ();
115115 stdOutReport.ScenarioEnd (engine::Result::ambiguous, contextManagerInstance.ScenarioContext ().info , {});
116- const auto stdout { testing::internal::GetCapturedStdout () };
117- EXPECT_THAT (stdout , testing::HasSubstr (" \n\\ ->" ));
118- EXPECT_THAT (stdout , testing::HasSubstr (" ambiguous (0ns)" ));
116+ const auto capture { testing::internal::GetCapturedStdout () };
117+ EXPECT_THAT (capture , testing::HasSubstr (" \n\\ ->" ));
118+ EXPECT_THAT (capture , testing::HasSubstr (" ambiguous (0ns)" ));
119119 }
120120
121121 TEST_F (TestStdOutReport, ScenarioEndFailed)
122122 {
123123 testing::internal::CaptureStdout ();
124124 stdOutReport.ScenarioEnd (engine::Result::failed, contextManagerInstance.ScenarioContext ().info , {});
125- const auto stdout { testing::internal::GetCapturedStdout () };
126- EXPECT_THAT (stdout , testing::HasSubstr (" \n\\ ->" ));
127- EXPECT_THAT (stdout , testing::HasSubstr (" failed (0ns)" ));
125+ const auto capture { testing::internal::GetCapturedStdout () };
126+ EXPECT_THAT (capture , testing::HasSubstr (" \n\\ ->" ));
127+ EXPECT_THAT (capture , testing::HasSubstr (" failed (0ns)" ));
128128 }
129129
130130 TEST_F (TestStdOutReport, StepMissing)
131131 {
132132 testing::internal::CaptureStdout ();
133133 stdOutReport.StepMissing (" missing step text" );
134- const auto stdout { testing::internal::GetCapturedStdout () };
135- EXPECT_THAT (stdout , testing::HasSubstr (" Step missing: \" missing step text\" " ));
134+ const auto capture { testing::internal::GetCapturedStdout () };
135+ EXPECT_THAT (capture , testing::HasSubstr (" Step missing: \" missing step text\" " ));
136136 }
137137
138138 TEST_F (TestStdOutReport, StepAmbiguous)
139139 {
140140 testing::internal::CaptureStdout ();
141141 // stdOutReport.StepAmbiguous();
142- const auto stdout { testing::internal::GetCapturedStdout () };
143- EXPECT_THAT (stdout , testing::StrEq (" " ));
142+ const auto capture { testing::internal::GetCapturedStdout () };
143+ EXPECT_THAT (capture , testing::StrEq (" " ));
144144 }
145145
146146 TEST_F (TestStdOutReport, StepSkipped)
147147 {
148148 testing::internal::CaptureStdout ();
149149 stdOutReport.StepSkipped (contextManagerInstance.StepContext ().info );
150- const auto stdout { testing::internal::GetCapturedStdout () };
151- EXPECT_THAT (stdout , testing::HasSubstr (" \n | " ));
152- EXPECT_THAT (stdout , testing::HasSubstr (" skipped Given StepInfo" ));
150+ const auto capture { testing::internal::GetCapturedStdout () };
151+ EXPECT_THAT (capture , testing::HasSubstr (" \n | " ));
152+ EXPECT_THAT (capture , testing::HasSubstr (" skipped Given StepInfo" ));
153153 }
154154
155155 TEST_F (TestStdOutReport, StepStart)
156156 {
157157 testing::internal::CaptureStdout ();
158158 stdOutReport.StepStart (contextManagerInstance.StepContext ().info );
159- const auto stdout { testing::internal::GetCapturedStdout () };
160- EXPECT_THAT (stdout , testing::StrEq (" \n | Given StepInfo" ));
159+ const auto capture { testing::internal::GetCapturedStdout () };
160+ EXPECT_THAT (capture , testing::StrEq (" \n | Given StepInfo" ));
161161 }
162162
163163 TEST_F (TestStdOutReport, NestedStepStart)
@@ -168,8 +168,8 @@ namespace cucumber_cpp::library::report
168168
169169 testing::internal::CaptureStdout ();
170170 stdOutReport.StepStart (contextManagerInstance.StepContext ().info );
171- const auto stdout { testing::internal::GetCapturedStdout () };
172- EXPECT_THAT (stdout , testing::StrEq (" \n | | Given StepInfo" ));
171+ const auto capture { testing::internal::GetCapturedStdout () };
172+ EXPECT_THAT (capture , testing::StrEq (" \n | | Given StepInfo" ));
173173 }
174174
175175 TEST_F (TestStdOutReport, StepEnd)
@@ -180,9 +180,9 @@ namespace cucumber_cpp::library::report
180180
181181 testing::internal::CaptureStdout ();
182182 stdOutReport.StepEnd (engine::Result::passed, contextManagerInstance.StepContext ().info , {});
183- const auto stdout { testing::internal::GetCapturedStdout () };
184- EXPECT_THAT (stdout , testing::HasSubstr (" \n | \\ -> " ));
185- EXPECT_THAT (stdout , testing::HasSubstr (" done (0ns)" ));
183+ const auto capture { testing::internal::GetCapturedStdout () };
184+ EXPECT_THAT (capture , testing::HasSubstr (" \n | \\ -> " ));
185+ EXPECT_THAT (capture , testing::HasSubstr (" done (0ns)" ));
186186 }
187187
188188 TEST_F (TestStdOutReport, StepEndNested)
@@ -194,49 +194,49 @@ namespace cucumber_cpp::library::report
194194
195195 testing::internal::CaptureStdout ();
196196 stdOutReport.StepEnd (engine::Result::passed, contextManagerInstance.StepContext ().info , {});
197- const auto stdout { testing::internal::GetCapturedStdout () };
198- EXPECT_THAT (stdout , testing::HasSubstr (" \n | | \\ -> " ));
199- EXPECT_THAT (stdout , testing::HasSubstr (" done (0ns)" ));
197+ const auto capture { testing::internal::GetCapturedStdout () };
198+ EXPECT_THAT (capture , testing::HasSubstr (" \n | | \\ -> " ));
199+ EXPECT_THAT (capture , testing::HasSubstr (" done (0ns)" ));
200200 }
201201
202202 TEST_F (TestStdOutReport, Failure)
203203 {
204204 testing::internal::CaptureStdout ();
205205 stdOutReport.Failure (" My Failure" , " file.cpp" , 1 , 1 );
206- const auto stdout { testing::internal::GetCapturedStdout () };
207- EXPECT_THAT (stdout , testing::HasSubstr (" \n Failure @ ./file.cpp:1:1:\n My Failure" ));
206+ const auto capture { testing::internal::GetCapturedStdout () };
207+ EXPECT_THAT (capture , testing::HasSubstr (" \n Failure @ ./file.cpp:1:1:\n My Failure" ));
208208 }
209209
210210 TEST_F (TestStdOutReport, FailureWithoutColumn)
211211 {
212212 testing::internal::CaptureStdout ();
213213 stdOutReport.Failure (" My Failure" , " file.cpp" , 1 );
214- const auto stdout { testing::internal::GetCapturedStdout () };
215- EXPECT_THAT (stdout , testing::HasSubstr (" \n Failure @ ./file.cpp:1:\n My Failure" ));
214+ const auto capture { testing::internal::GetCapturedStdout () };
215+ EXPECT_THAT (capture , testing::HasSubstr (" \n Failure @ ./file.cpp:1:\n My Failure" ));
216216 }
217217
218218 TEST_F (TestStdOutReport, Error)
219219 {
220220 testing::internal::CaptureStdout ();
221221 stdOutReport.Error (" My Error" , " file.cpp" , 1 , 1 );
222- const auto stdout { testing::internal::GetCapturedStdout () };
223- EXPECT_THAT (stdout , testing::HasSubstr (" \n Error @ ./file.cpp:1:1:\n My Error" ));
222+ const auto capture { testing::internal::GetCapturedStdout () };
223+ EXPECT_THAT (capture , testing::HasSubstr (" \n Error @ ./file.cpp:1:1:\n My Error" ));
224224 }
225225
226226 TEST_F (TestStdOutReport, ErrorWithoutColumn)
227227 {
228228 testing::internal::CaptureStdout ();
229229 stdOutReport.Error (" My Error" , " file.cpp" , 1 );
230- const auto stdout { testing::internal::GetCapturedStdout () };
231- EXPECT_THAT (stdout , testing::HasSubstr (" \n Error @ ./file.cpp:1:\n My Error" ));
230+ const auto capture { testing::internal::GetCapturedStdout () };
231+ EXPECT_THAT (capture , testing::HasSubstr (" \n Error @ ./file.cpp:1:\n My Error" ));
232232 }
233233
234234 TEST_F (TestStdOutReport, Trace)
235235 {
236236 testing::internal::CaptureStdout ();
237237 stdOutReport.Trace (" Traces a message without any formatting" );
238- const auto stdout { testing::internal::GetCapturedStdout () };
239- EXPECT_THAT (stdout , testing::StrEq (" Traces a message without any formatting" ));
238+ const auto capture { testing::internal::GetCapturedStdout () };
239+ EXPECT_THAT (capture , testing::StrEq (" Traces a message without any formatting" ));
240240 }
241241
242242 TEST_F (TestStdOutReport, Summary)
@@ -254,14 +254,14 @@ namespace cucumber_cpp::library::report
254254
255255 testing::internal::CaptureStdout ();
256256 stdOutReport.Summary ({});
257- const auto stdout { testing::internal::GetCapturedStdout () };
258- EXPECT_THAT (stdout , testing::StrEq (" \n ====================summary===================="
259- " \n duration: 0ns"
260- " \n tests : 1/3 passed"
261- " \n "
262- " \n failed tests:"
263- " \n\"\" :0:0 : \" ScenarioInfo\" "
264- " \n\"\" :0:0 : \" ScenarioInfo\" " ));
257+ const auto capture { testing::internal::GetCapturedStdout () };
258+ EXPECT_THAT (capture , testing::StrEq (" \n ====================summary===================="
259+ " \n duration: 0ns"
260+ " \n tests : 1/3 passed"
261+ " \n "
262+ " \n failed tests:"
263+ " \n\"\" :0:0 : \" ScenarioInfo\" "
264+ " \n\"\" :0:0 : \" ScenarioInfo\" " ));
265265 }
266266
267267}
0 commit comments