@@ -133,6 +133,42 @@ See below for links to more examples:
133
133
- [ Unit tests] [ example-unit-tests ]
134
134
- [ Integration tests for an ASP.NET Core HTTP application] [ example-integration-tests ]
135
135
136
+ ## Example Output
137
+
138
+ If your tests (and the system under test) are correctly configured, then you should see output from the
139
+ tests in the same places you would expected to see [ output from xunit tests] [ xunit-output ] .
140
+
141
+ See below for some examples from the [ ` Http_Get_Many ` ] [ example-test ] test in this repository.
142
+
143
+ <!-- markdownlint-disable MD033 -->
144
+
145
+ ### Visual Studio
146
+
147
+ <details >
148
+ <summary >Click to expand</summary >
149
+
150
+ ![ Visual Studio Output] [ output-vs ]
151
+
152
+ </details >
153
+
154
+ ### Visual Studio Code
155
+
156
+ <details >
157
+ <summary >Click to expand</summary >
158
+
159
+ ![ Visual Studio Code Output] [ output-vscode ]
160
+
161
+ </details >
162
+
163
+ ### Windows Terminal and .NET CLI
164
+
165
+ <details >
166
+ <summary >Click to expand</summary >
167
+
168
+ ![ Windows Terminal Output] [ output-windows-terminal ]
169
+
170
+ </details >
171
+
136
172
## Migrating to xunit v3
137
173
138
174
[ Xunit v3] [ xunit-v3-whats-new ] contains many major architectural changes which means the same package
@@ -182,9 +218,13 @@ cd xunit-logging
182
218
[ scorecard-report ] : https://securityscorecards.dev/viewer/?uri=github.com/martincostello/xunit-logging " OpenSSF Scorecard for this project "
183
219
[ dotnet-sdk ] : https://dot.net/download " Download the .NET SDK "
184
220
[ example-integration-tests ] : https://github.com/martincostello/xunit-logging/blob/main/tests/Shared/Integration/HttpApplicationTests.cs " Integration test examples "
221
+ [ example-test ] : https://github.com/martincostello/xunit-logging/blob/8951660a4667cfa5b07e2558b741b335a31d1e59/tests/Shared/Integration/HttpApplicationTests.cs#L26-L58 " Http_Get_Many "
185
222
[ example-unit-tests ] : https://github.com/martincostello/xunit-logging/blob/main/tests/Shared/Examples.cs " Unit test examples "
186
223
[ issues ] : https://github.com/martincostello/xunit-logging/issues " Issues for this project on GitHub.com "
187
224
[ license ] : https://www.apache.org/licenses/LICENSE-2.0.txt " The Apache 2.0 license "
225
+ [ output-vs ] : ./docs/images/output-vs.png " xunit Output in Visual Studio "
226
+ [ output-vscode ] : ./docs/images/output-vscode.png " xunit Output in Visual Studio Code "
227
+ [ output-windows-terminal ] : ./docs/images/output-terminal.png " xunit Output in Windows Terminal with the .NET CLI "
188
228
[ package-badge-downloads-v2 ] : https://img.shields.io/nuget/dt/MartinCostello.Logging.XUnit?logo=nuget&label=Downloads&color=blue
189
229
[ package-badge-downloads-v3 ] : https://img.shields.io/nuget/dt/MartinCostello.Logging.XUnit.v3?logo=nuget&label=Downloads&color=blue
190
230
[ package-badge-version-v2 ] : https://img.shields.io/nuget/v/MartinCostello.Logging.XUnit?logo=nuget&label=Latest&color=blue
@@ -194,5 +234,6 @@ cd xunit-logging
194
234
[ repo ] : https://github.com/martincostello/xunit-logging " This project on GitHub.com "
195
235
[ serilog ] : https://serilog.net/ " Serilog website "
196
236
[ serilog-sinks-xunit ] : https://github.com/trbenning/serilog-sinks-xunit " Serilog.Sinks.XUnit on GitHub "
237
+ [ xunit-output ] : https://xunit.net/docs/capturing-output " Capturing Output - xUnit.net Documentation "
197
238
[ xunit-v3-migration ] : https://xunit.net/docs/getting-started/v3/migration " Migrating from xunit v2 to v3 "
198
239
[ xunit-v3-whats-new ] : https://xunit.net/docs/getting-started/v3/whats-new " What's New in v3 "
0 commit comments