.NET test projects are recognised only via an explicit Microsoft.NET.Test.Sdk reference: xunit.v3 + Microsoft.Testing.Platform and Arcade SDK projects have "no tests"
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
The detection logic is _test_project in project_validator/ecosystems/dotnet/tools.py (about lines 75-81), which currently requires a Microsoft.NET.Test.Sdk reference or an MSTest.Sdk Sdk attribute. Read it alongside the issue's repro: a .csproj with xunit.v3 or UseMicrosoftTestingPlatformRunner and a [Fact] method. Done when such a project is recognised as a test project, and a test covers the xunit.v3, NUnit and MSTest package references.
Written by the indexing model from the issue text.
Description
Humanizer (161 files with [Fact], xunit.v3 on Microsoft.Testing.Platform) and dotnet/command-line-api (53 files, Arcade SDK where the test SDK is implicit) get FAIL "no tests found ([Fact], [Test] or [TestMethod] methods in a test project (one referencing Microsoft.NET.Test.Sdk))". A project with [Fact]/[Test] methods and an xunit/NUnit/MSTest package reference is a test project.
Evidence from the corpus audit
Humanizr/Humanizer, dotnet/command-line-api / tests-run
- kind: FALSE_NEGATIVE
- actual: FAIL:
.NET: no tests found ([Fact], [Test] or [TestMethod] methods in a test project (one referencing Microsoft.NET.Test.Sdk))(both projects) - expected: tests found: Humanizer has 161 files with
[Fact]in an xunit.v3 / Microsoft.Testing.Platform project; command-line-api has 53 in Arcade SDK projects, where the test SDK is implicit. - evidence: Humanizer
tests/Humanizer.Tests/Humanizer.Tests.csproj:6-7:<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>/<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>;:19:<PackageReference Include="xunit.v3.mtp-v2" />. command-line-apiDirectory.Build.props:3:<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />;src/System.CommandLine.Tests/System.CommandLine.Tests.csproj:1:<Project Sdk="Microsoft.NET.Sdk">with no test-SDK reference. Validator:project_validator/ecosystems/dotnet/tools.py:75-81_test_projectrequiresPackageReference == "Microsoft.NET.Test.Sdk"orSdkstarting withMSTest.Sdk. - repro: a
.csprojwith<PackageReference Include="xunit.v3" />(orUseMicrosoftTestingPlatformRunner) and a.cswith[Fact]. - confidence: high
Found by the regression-corpus audit (235 real repositories, one or more per ecosystem profile; corpus and expected results in corpus/). Evidence is quoted from the audited checkouts at the commits pinned in corpus/projects.toml; <checkouts>/<owner>__<repo> is such a checkout.
🤖 Generated with Claude Code
- Dominant language
- Python
- Stars
- 4
- Forks
- 1
- Avg merge
- 10h 41m
- Merged PRs (30d)
- 79
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cpp-best-practices/project_validator
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
cpp-best-practices/project_validator#267 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
cpp-best-practices/project_validator#263 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
cpp-best-practices/project_validator#260 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
cpp-best-practices/project_validator#259 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
cpp-best-practices/project_validator#255 ·
Maintainers usually reply within 1 day
All issues in cpp-best-practices/project_validator
Similar issues
-
plot_graph crashes when a mesh node has no m2m edgePossibly taken @tygvi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
mllam/neural-lam#883 · 1 comment ·
Maintainers usually reply within 2 days
-
enhancement possible-duplicate
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/PictoPy#1715 · 2 comments ·
Maintainers usually reply within 6 days
-
SQLite connector omits generated columns from the catalog, and drops relationships sourced on themOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NVIDIA/auto-ontology#511 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ethereum/execution-specs#3996 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Project-N-E-K-O/N.E.K.O#3725 ·
Maintainers usually reply within 1 day