Skip to content

Commit

Permalink
Bump test executable to netcoreapp2.1
Browse files Browse the repository at this point in the history
Align test executable with .NET Core SDK used.
Always run xunit tests from command line in release mode
  • Loading branch information
russcam committed Aug 28, 2019
1 parent 70ed412 commit afe799a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/scripts/Testing.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module Tests =

let private dotnetTest() =
CreateDir Paths.BuildOutput
let command = ["xunit"; "-parallel"; "none"; "-xml"; "../.." @@ Paths.Output("Proc.Tests.xml")]
let command = ["xunit"; "-parallel"; "none"; "-xml"; "../.." @@ Paths.Output("Proc.Tests.xml"); "-c"; "Release"]

let dotnet = Tooling.BuildTooling("dotnet")
dotnet.ExecIn "src/Proc.Tests" command |> ignore
Expand Down
2 changes: 1 addition & 1 deletion src/Proc.Tests.Binary/Proc.Tests.Binary.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Import Project="..\..\build\Versioning.targets" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AssemblyName>Proc.Tests.Binary</AssemblyName>
<RootNamespace>Proc.Tests.Binary</RootNamespace>
<NoWarn>CS1701,CS1591</NoWarn>
Expand Down
2 changes: 1 addition & 1 deletion src/Proc.Tests/TestsBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected static StartArguments TestCaseArguments(string testcase) =>

private static string GetDll()
{
var dll = Path.Combine("bin", GetRunningConfiguration(), "netcoreapp1.1", _procTestBinary + ".dll");
var dll = Path.Combine("bin", GetRunningConfiguration(), "netcoreapp2.1", _procTestBinary + ".dll");
var fullPath = Path.Combine(GetWorkingDir(), dll);
if (!File.Exists(fullPath)) throw new Exception($"Can not find {fullPath}");

Expand Down
Binary file modified src/Proc/Embedded/Proc.ControlC.exe
Binary file not shown.

0 comments on commit afe799a

Please sign in to comment.