Skip to content

Commit cac7695

Browse files
authored
Flush cout on start of step to show current step on console. (#186)
1 parent 296d7d0 commit cac7695

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cucumber_cpp/library/report/StdOutReport.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ namespace cucumber_cpp::library::report
184184
void StdOutReport::StepStart(const engine::StepInfo& stepInfo)
185185
{
186186
std::cout << "\n"
187-
<< stepTypeLut.at(stepInfo.Type()) << " " << stepInfo.Text();
187+
<< stepTypeLut.at(stepInfo.Type()) << " " << stepInfo.Text()
188+
<< std::flush;
188189
}
189190

190191
void StdOutReport::StepEnd(engine::Result result, const engine::StepInfo& stepInfo, TraceTime::Duration duration)

0 commit comments

Comments
 (0)