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

Support xunit v3 #717

Open
martincostello opened this issue Aug 16, 2024 · 1 comment · May be fixed by #718
Open

Support xunit v3 #717

martincostello opened this issue Aug 16, 2024 · 1 comment · May be fixed by #718
Assignees
Labels
feature-request A request for new functionality
Milestone

Comments

@martincostello
Copy link
Owner

Is your feature request related to a problem? Please describe.

Add support for xunit v3: What's New in v3

Describe the solution you'd like

The ability to log to the relevant primitives when targeting xunit v3.

Migrating from v2 to v3

@martincostello martincostello added the feature-request A request for new functionality label Aug 16, 2024
@martincostello martincostello added this to the Future milestone Aug 16, 2024
@martincostello martincostello self-assigned this Aug 16, 2024
@martincostello martincostello linked a pull request Aug 16, 2024 that will close this issue
@teneko
Copy link

teneko commented Nov 17, 2024

Thanks for migrating to v3 in the near future.

During that migration here a quick work around to get the console output:

  • migrate to xUnit v3 by following What's New in v3
  • use [assembly: CaptureTrace] to capture Debug.Write and Debug.Trace
  • and instruct the logger factory to output to Debug (not Console), for example:
LoggerFactory.Create(static x => {
    x.AddDebug();
    // ...
})

and use that logger factory in a class fixture or test classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A request for new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants