Skip to content

Unit test cannot run normally on the local machine #13584

Closed
@Olina-Zhang

Description

@Olina-Zhang

.NET version

10.0.100-preview.6.25310.107

Did it work in .NET Framework?

Not tested/verified

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Not tested

Issue description

For the cloned latest Winforms repo, regressed after the PR: #13521, doesn't detect unit test, so cannot run unit test in our machine:

Image

Log in Output window:

========== Starting test discovery ==========
[xUnit.net 00:00:00.01] xUnit.net VSTest Adapter v2.8.1+ce9211e970 (64-bit .NET 10.0.0-preview.6.25310.107)
No test is available in D:\Winforms\artifacts\bin\System.Private.Windows.Core.Tests\Debug\net10.0-windows7.0\System.Private.Windows.Core.Tests.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 4.7 sec ==========
Building Test Projects
Executing all tests in file: BindingTests.cs
========== Starting test run ==========
========== Test run aborted: 0 Tests (0 Passed, 0 Failed, 0 Skipped) run in < 1 ms ==========

Steps to reproduce

Clone Winforms repro, run any unit test

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions