Skip to content
This repository was archived by the owner on Jan 8, 2019. It is now read-only.

Commit 3fcf005

Browse files
committed
use env var TEST_SUITE_MSBUILD_HOST_TYPES to choose msbuild host to test
1 parent c92eda1 commit 3fcf005

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

test/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,14 @@ To specify what package version to test, use env var:
5454
- `TEST_SUITE_FSHARP_CORE_PKG_VERSION` => `FSharp.Core` pkg version
5555

5656
If not set, default versions are specified in [test/testAssets/TestSuiteProps/TestSuiteProps.props](test/testAssets/TestSuiteProps/TestSuiteProps.props)
57+
58+
## Choose MSBuild host types
59+
60+
Use env var `TEST_SUITE_MSBUILD_HOST_TYPES` to run other test for different msbuild host types
61+
62+
Msbuild Core test always run
63+
64+
- `MSBUILD` to run also MSBuild (.NET Full), require `msbuild.exe` in `PATH`
65+
- `MONO` to run also Mono, require `mono` in `PATH`
66+
67+
to specify multiple, use `;` separator, so `MSBUILD;MONO` for example

test/dotnet-new.Tests/TestSuite.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static MSBuildHostTypesOnly MSBuildHostTypesOnly
6666
get
6767
{
6868
var msbuildHost =
69-
(GetEnvironmentVariable("TEST_SUITE_MSBUILD_HOST_ONLY") ?? "")
69+
(GetEnvironmentVariable("TEST_SUITE_MSBUILD_HOST_TYPES") ?? "")
7070
.ToUpper()
7171
.Split(';');
7272

0 commit comments

Comments
 (0)