Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start using the xUnit Logger #113

Open
csharpfritz opened this issue Mar 10, 2020 · 1 comment
Open

Start using the xUnit Logger #113

csharpfritz opened this issue Mar 10, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@csharpfritz
Copy link
Contributor

Let's start using the xUnit logger for logging data during unit tests going forward.

Syntax is similar to:

// RazorComponentTest.razor
<Fixture Setup="Setup" ...>
    ...
</Fixture>
@code {
    private ITestOutputHelper _output;
    
    public RazorComponentTest(ITestOutputHelper output)
    {
        _output = output;
    }
    
    void Setup()
    {
        Services.AddXunitLogger(_output, minimumLogLevel: LogLevel.Debug);
    }
}

More information at: https://github.com/egil/bunit/releases/tag/v1.0.0-beta-6

@csharpfritz csharpfritz added the enhancement New feature or request label Mar 10, 2020
@hishamco
Copy link
Collaborator

I can work on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants