From 5349900c3b2981092b5603af71e7d039f907f56c Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Fri, 20 May 2016 15:17:12 -0700 Subject: [PATCH 1/4] Use get-command instead of get-process in xUnit --- test/csharp/test_Runspace.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/csharp/test_Runspace.cs b/test/csharp/test_Runspace.cs index 687a7afc01..dcde801f75 100644 --- a/test/csharp/test_Runspace.cs +++ b/test/csharp/test_Runspace.cs @@ -12,7 +12,7 @@ namespace PSTests public class RunspaceTests { private static int count = 3; - private static string script = String.Format($"get-process | select-object -first {count}"); + private static string script = String.Format($"get-command | select-object -first {count}"); [Fact] public void TestRunspaceWithPipeline() From dcaf231bde91c3da2264180a529a262944f4621d Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Fri, 20 May 2016 15:18:21 -0700 Subject: [PATCH 2/4] Update dotnet-test-xunit package --- test/csharp/project.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/csharp/project.json b/test/csharp/project.json index 9ba4065135..df546f0eeb 100644 --- a/test/csharp/project.json +++ b/test/csharp/project.json @@ -13,7 +13,7 @@ "imports": [ "dnxcore50", "portable-net45+win8" ], "dependencies": { "xunit": "2.1.0", - "dotnet-test-xunit": "1.0.0-rc2-173384-19" + "dotnet-test-xunit": "1.0.0-rc2-192208-24" } } }, From 29ec5f27b9bbf06d08d8481ad3a94a1d55b8db0e Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Fri, 20 May 2016 16:04:37 -0700 Subject: [PATCH 3/4] Run xUnit tests verbosely --- build.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index ad3fc75667..a51fbea777 100644 --- a/build.psm1 +++ b/build.psm1 @@ -336,7 +336,7 @@ function Start-PSxUnit { } $Content = Split-Path -Parent (Get-PSOutput) - $Arguments = "--configuration", "Linux" + $Arguments = "--configuration", "Linux", "-verbose", "-parallel", "none" try { Push-Location $PSScriptRoot/test/csharp # Path manipulation to obtain test project output directory From 4f8e30c10eea360aa9ef290dc63c40dac8ad9815 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Fri, 20 May 2016 16:06:12 -0700 Subject: [PATCH 4/4] Update xUnit tests to depend on powershell project --- test/csharp/project.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/csharp/project.json b/test/csharp/project.json index df546f0eeb..88cbbfcf5d 100644 --- a/test/csharp/project.json +++ b/test/csharp/project.json @@ -5,7 +5,7 @@ "authors": [ "andschwa" ], "dependencies": { - "Microsoft.PowerShell.ConsoleHost": "1.0.0-*" + "powershell": "1.0.0-*" }, "frameworks": {