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

chore: Explicitly set ‘IsTestProject‘ property to false for non-test project #10298

Merged
merged 2 commits into from
Oct 19, 2024

Conversation

filzrev
Copy link
Contributor

@filzrev filzrev commented Oct 19, 2024

This PR change Docfx.Tests.Common project's IsTestProject property to false.
Because it's shared library project and not contais tests.

It's required to exclude projects from test execution.
e.g. https://github.com/dotnet/docfx/runs/31762712785#r60

No tests found

Additionally docfx.Snapshot.Tests project for .NET 6 have no runnable tests.
So I've override TargetFrameworks property with following reasons.

  • Reduce build time and disk spaces (It takes about 150MB)
  • When updated to xUnit v3 and running with Microsoft.Testing.Platform test project that have no tests returns error code.

@filzrev filzrev force-pushed the chore-modify-istestproject-setting branch from d07395b to cd3987b Compare October 19, 2024 06:16
@filzrev filzrev changed the title chore: Explicitly set ‘IsTestProject‘ property to fa;se for non-test project chore: Explicitly set ‘IsTestProject‘ property to false for non-test project Oct 19, 2024
@yufeih yufeih merged commit a20025d into dotnet:main Oct 19, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants