diff --git a/playground/TestPlatform.Playground/Program.cs b/playground/TestPlatform.Playground/Program.cs
index 3520b7b67b..afaf43d2a0 100644
--- a/playground/TestPlatform.Playground/Program.cs
+++ b/playground/TestPlatform.Playground/Program.cs
@@ -23,7 +23,7 @@ static void Main(string[] args)
{
// This project references TranslationLayer, vstest.console, TestHostProvider, testhost and MSTest1 projects, to make sure
// we build all the dependencies of that are used to run tests via VSTestConsoleWrapper. It then copies the components from
- // their original build locations, to $(TargetDir)\vstest.console directory, and it's subfolders to create an executable
+ // their original build locations, to $(TargetDir)\vstest.console directory, and its subfolders to create an executable
// copy of TestPlatform that is similar to what we ship.
//
// The copying might trigger only on re-build, if you see outdated dependencies, Rebuild this project instead of just Build.
@@ -38,14 +38,30 @@ static void Main(string[] args)
var console = Path.Combine(here, "vstest.console", "vstest.console.exe");
- var sourceSettings = @"
-
-
- true
- 0
-
-
- ";
+ var maxCpuCount = Environment.GetEnvironmentVariable("VSTEST_MAX_CPU_COUNT") ?? "0";
+ var sourceSettings = $$$"""
+
+
+
+
+
+
+
+
+ False
+ True
+
+
+ 999999
+
+
+
+
+
+
+
+
+ """;
var sources = new[] {
Path.Combine(playground, "MSTest1", "bin", "Debug", "net472", "MSTest1.dll"),
@@ -81,7 +97,7 @@ static void Main(string[] args)
{
EnvironmentVariables = EnvironmentVariables.Variables,
LogFilePath = Path.Combine(here, "logs", "log.txt"),
- TraceLevel = TraceLevel.Verbose,
+ TraceLevel = TraceLevel.Off,
};
var options = new TestPlatformOptions
{
@@ -110,6 +126,7 @@ static void Main(string[] args)
//r.RunTests(sources, sourceSettings, options, sessionHandler.TestSessionInfo, new TestRunHandler());
var rd = sw.ElapsedMilliseconds;
Console.WriteLine($"Discovery: {discoveryDuration} ms, Run: {rd} ms, Total: {discoveryDuration + rd} ms");
+ Console.WriteLine($"Settings:\n{sourceSettings}");
}
public class PlaygroundTestDiscoveryHandler : ITestDiscoveryEventsHandler, ITestDiscoveryEventsHandler2