-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Enable dotnet test in libraries #35285
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
Conversation
|
Tagging subscribers to this area: @ViktorHofer |
|
cc @davidfowl |
What is the impact this has on the commands we use in the repo? |
Sorry, mentioned the behavior change only in the batched rollout issues and forgot to add it here as well. Please see the updated top post. |
0ba9e11 to
9578acb
Compare
309de4a to
dffeff8
Compare
b0993b9 to
b2dbc58
Compare
|
@ViktorHofer Now it's no-op. Running individual tests still works: But I don't know which folder and how should I run this command from to run all of them. |
It's not doing anything? |
|
Just tried this out locally and the test execution of all projects still works (it invokes the Test target). Can I try your command out somehow? |
@ViktorHofer it only builds libs but doesn't launch
Oh, you will need to install Android NDK/SDK so I better try to figure out myself. So are you saying |
|
Isn't the right command build.sh libs.tests - test? I don't see the subset specified in your command. |
|
@ViktorHofer |
|
No problem at all :) |
No Merge. Part of batched rollout in May: #35202
Fixes #945
Requires #35538
IsTestSupportProjectfromIsTestProjectas the VSTest target runs based on the latter one. This enables dotnet test on sln projects.dotnet testFeature additions
dotnet test -f netcoreapp5.0 /p:Subset=libs.testsor on a solution (e.g.dotnet test -f netcoreapp5.0 src\libraries\System.Text.RegularExpressions)Behavior Change
For measuring code coverage, the inbuilt dotnet test data collector is now used (which improves perf and stability and is actually the only supported way to measure coverage with dotnet test). The command changes from
dotnet build /t:Test /p:Coverage=truetodotnet test -f netcoreapp5.0 /p:Coverage=true.Plan for migrating from xunit.console -> dotnet test
dotnet test.dotnet testwithout regressing the existing workflow and efficiency, we will add a warning to the test target indicating that it will be removed with the next batched rollout and will recommend to switch todotnet test.cc @stephentoub @danmosemsft