ConnectingApps.Xunit.TestLogger
1.0.2-preview
This is a prerelease version of ConnectingApps.Xunit.TestLogger.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ConnectingApps.Xunit.TestLogger --version 1.0.2-preview
NuGet\Install-Package ConnectingApps.Xunit.TestLogger -Version 1.0.2-preview
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ConnectingApps.Xunit.TestLogger" Version="1.0.2-preview" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ConnectingApps.Xunit.TestLogger --version 1.0.2-preview
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ConnectingApps.Xunit.TestLogger, 1.0.2-preview"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ConnectingApps.Xunit.TestLogger as a Cake Addin #addin nuget:?package=ConnectingApps.Xunit.TestLogger&version=1.0.2-preview&prerelease // Install ConnectingApps.Xunit.TestLogger as a Cake Tool #tool nuget:?package=ConnectingApps.Xunit.TestLogger&version=1.0.2-preview&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Xunit.TestLogger
Before this NuGet package
If you make integration tests with xUnit, your logging is gone. You can just see if the test succeeds or fails but you cannot see why as you don't have the logging to help you understanding what happened during the runtime of the test, which makes it hard to solve it.
Now
The is situation is different now! The problem is solved. Alle you need to do is stop using this way of creating a WebApplicationFactory
:
public NoLoggingTest()
{
_factory = new WebApplicationFactory<Program>();
}
and start using this way
public ImprovedLoggingTest(ITestOutputHelper output)
{
_factory = new TestLoggerWebApplicationFactory<Program>(output);
}
Here is how it looks like:
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.AspNetCore.Mvc.Testing (>= 6.0.0 && <= 6.0.99)
- xunit.abstractions (>= 2.0.3 && <= 3.2.0)
-
net7.0
- Microsoft.AspNetCore.Mvc.Testing (>= 7.0.0 && <= 7.0.99)
- xunit.abstractions (>= 2.0.3 && <= 3.2.0)
-
net8.0
- Microsoft.AspNetCore.Mvc.Testing (>= 8.0.0-rc.2.23480.2 && <= 8.0.99)
- xunit.abstractions (>= 2.0.3 && <= 3.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.2.0-net9support | 62 | 5/20/2024 |
1.1.0 | 1,820 | 11/14/2023 |
1.0.3 | 102 | 10/19/2023 |
1.0.2-preview | 64 | 10/19/2023 |
1.0.1-preview | 106 | 10/18/2023 |
1.0.0-preview | 109 | 10/18/2023 |
Initial version