ConnectingApps.Xunit.TestLogger 1.0.0-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.
dotnet add package ConnectingApps.Xunit.TestLogger --version 1.0.0-preview
NuGet\Install-Package ConnectingApps.Xunit.TestLogger -Version 1.0.0-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.0-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.0-preview
#r "nuget: ConnectingApps.Xunit.TestLogger, 1.0.0-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.0-preview&prerelease

// Install ConnectingApps.Xunit.TestLogger as a Cake Tool
#tool nuget:?package=ConnectingApps.Xunit.TestLogger&version=1.0.0-preview&prerelease

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:

Alt text

Product 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 was computed.  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.

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 45 5/20/2024
1.1.0 537 11/14/2023
1.0.3 94 10/19/2023
1.0.2-preview 56 10/19/2023
1.0.1-preview 99 10/18/2023
1.0.0-preview 97 10/18/2023

Initial version