thomhurst / TUnit

A modern, fast and flexible .NET testing framework
MIT License
2.35k stars 37 forks source link

[question] How to skip specific folders when running from top-level directory? #1209

Open theodelrieu opened 2 days ago

theodelrieu commented 2 days ago

Hello,

I couldn't find the answer in the docs, so here I am. Before migrating to TUnit, all I had to do with xUnit was running dotnet test from my top-level directory. Some of my test projects have the attribute IsTestProject set to false. This is to avoid running them everytime, as they are quite heavy and require specific configuration, so they have their own CI job.

Unfortunately, IsTestProject doesn't seem to be handled by TUnit. Is there a way to ignore specific folders?

thomhurst commented 1 day ago

How are you running them separately if they're not considered test projects?

You could try <TestingPlatformDotnetTestSupport>false</TestingPlatformDotnetTestSupport> ?