Skip to content

Is the Xunit runner .net 6 ready? #38

@nrhoffmann

Description

@nrhoffmann

I tried running to run the example using a new .net 6 Xunit test project. Doesn't work! 🙁

dotnet test

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
No test is available in C:\Users\Bob\Source\Repos\EsIntegrationReprex\bin\Debug\net6.0\EsIntegrationReprex.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.

Using the VS test runner yields:

image
with the following output:

Starting test discovery for requested test run
========== Starting test discovery ==========
[xUnit.net 00:00:00.01] xUnit.net VSTest Adapter v2.4.3+1b45f5407b (64-bit .NET 6.0.0-preview.6.21352.12)
[xUnit.net 00:00:02.13]   Discovering: EsIntegrationReprex
[xUnit.net 00:00:02.19]   Discovered:  EsIntegrationReprex
No test is available in C:\Users\Bob\Source\Repos\EsIntegrationReprex\bin\Debug\net6.0\EsIntegrationReprex.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
========== Test discovery finished: 0 Tests found in 3.5 sec ==========
Executing all tests in project: EsIntegrationReprex
========== Starting test run ==========
========== Test run finished: 0 Tests (0 Passed, 0 Failed, 0 Skipped) run in < 1 ms ==========

Here is a link to the project https://github.com/nrhoffmann/EsIntregrationReprex.

Local Environment

  • dotnet 6.0.100-preview.6.21355.2
  • VS 2022 Version 17.0.0 Preview 2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions