@@ -176,6 +176,7 @@ const (
176
176
VeryVerbose
177
177
FullTrace
178
178
ShowNodeEvents
179
+ GithubOutput
179
180
180
181
Parallel //used in the WillRun => DidRun specs to capture behavior when running in parallel
181
182
)
@@ -204,6 +205,9 @@ func (cf ConfigFlag) String() string {
204
205
if cf .Has (Parallel ) {
205
206
out = append (out , "parallel" )
206
207
}
208
+ if cf .Has (GithubOutput ) {
209
+ out = append (out , "github-output" )
210
+ }
207
211
return strings .Join (out , "|" )
208
212
}
209
213
@@ -226,6 +230,7 @@ func C(flags ...ConfigFlag) types.ReporterConfig {
226
230
VeryVerbose : f .Has (VeryVerbose ),
227
231
FullTrace : f .Has (FullTrace ),
228
232
ShowNodeEvents : f .Has (ShowNodeEvents ),
233
+ GithubOutput : f .Has (GithubOutput ),
229
234
}
230
235
}
231
236
@@ -770,6 +775,18 @@ var _ = Describe("DefaultReporter", func() {
770
775
" {{gray}}<< Captured StdOut/StdErr Output{{/}}" ,
771
776
DELIMITER ,
772
777
"" ),
778
+ Case (Parallel | GithubOutput ,
779
+ DELIMITER ,
780
+ spr ("{{green}}%s [1.000 seconds]{{/}}" , DENOTER ),
781
+ "{{green}}{{bold}}A{{/}}" ,
782
+ "{{gray}}cl0.go:12{{/}}" ,
783
+ "" ,
784
+ " ::group::Captured StdOut/StdErr Output" ,
785
+ " hello there" ,
786
+ " this is my output" ,
787
+ " ::endgroup::" ,
788
+ DELIMITER ,
789
+ "" ),
773
790
),
774
791
Entry ("a passing test with a full timeline that is only visible in verbose/very-verbose mode" ,
775
792
S (types .NodeTypeIt , "A" , cl0 , GW ("some GinkgoWriter\n output is interspersed\n here and there\n " ),
0 commit comments