Runtime: `build -test` won't actually run tests as said in the docs?

Created on 12 May 2020  路  8Comments  路  Source: dotnet/runtime

https://github.com/dotnet/runtime/blob/master/docs/workflow/testing/libraries/testing.md says:

The following builds and runs all tests in release configuration:
build.cmd/sh -subset libs -test -c Release

However when I do build -subset libs -runtimeConfiguration Release -test it doesn't appear to build tests neither run the tests; From what I see it seems to build the libraries part, and ends.

In addition, when I specify -testnobuild it doesn't seem to respect it as it does actually build the libs component.

area-Infrastructure-libraries untriaged

Most helpful comment

All 8 comments

Tagging subscribers to this area: @safern, @viktorhofer
Notify danmosemsft if you want to be subscribed.

The subset is wrong in the docs. It should be libs.tests.

@ViktorHofer btw, is it possible to build everything from scratch and run tests at once?, e.g.

build -subset Mono+Libs+Libs.Tests -test

or it should be

build -subset Mono+Libs
build -subset Libs.Tests -test

?

@ViktorHofer btw, is it possible to build everything from scratch and run tests at once?, e.g.

I think build.cmd mono+libs+libs.tests -test should work fine as long as mono doesn't have a test subset.

I think build.cmd mono+libs+libs.tests -test should work fine as long as mono doesn't have a test subset.

Also, do we need to pass /p:RuntimeFlavor=mono for that?

Good to know 馃槃 thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

btecu picture btecu  路  3Comments

jzabroski picture jzabroski  路  3Comments

v0l picture v0l  路  3Comments

nalywa picture nalywa  路  3Comments

EgorBo picture EgorBo  路  3Comments