File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed
Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,28 @@ You can also declare which one to use. Either at the
9191
9292### Method level
9393
94- snippet: inline_reporter
94+ <!-- snippet: inline_reporter -->
95+ <a id =' snippet-inline_reporter ' ></a >
96+ ``` go
97+ r := UseReporter (reporters.NewContinuousIntegrationReporter ())
98+ defer r.Close ()
99+ ```
100+ <sup ><a href =' /approvals_test.go#L26-L29 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-inline_reporter ' title =' Start of snippet ' >anchor</a ></sup >
101+ <!-- endSnippet -->
95102
96103### Test Level
97104
98- snippet: test_main_with_reporter
105+ <!-- snippet: test_main_with_reporter -->
106+ <a id =' snippet-test_main_with_reporter ' ></a >
107+ ``` go
108+ func TestMain (m *testing .M ) {
109+ r := UseReporter (reporters.NewContinuousIntegrationReporter ())
110+ defer r.Close ()
111+
112+ UseFolder (" testdata" )
113+
114+ os.Exit (m.Run ())
115+ }
116+ ```
117+ <sup ><a href =' /approvals_test.go#L13-L23 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-test_main_with_reporter ' title =' Start of snippet ' >anchor</a ></sup >
118+ <!-- endSnippet -->
You can’t perform that action at this time.
0 commit comments