C:\projects\scriptcs\test\ScriptCs.Tests.Acceptance\bin\Release\net461\ScriptCs.Tests.Acceptance.dll(.NETFramework,Version=v4.6.1)
Microsoft (R) Test Execution Command Line Tool Version 15.6.0
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
[xUnit.net 00:00:00.2398823] Discovering: ScriptCs.Tests.Acceptance
[xUnit.net 00:00:00.3235600] Discovered: ScriptCs.Tests.Acceptance
[xUnit.net 00:00:00.3276242] Starting: ScriptCs.Tests.Acceptance
ScriptCs.Tests.Acceptance.Support.ScriptCsException: scriptcs.exe exited with code 1. The output was:
at ScriptCs.Tests.Acceptance.Support.ScriptCsExe.Execute(IEnumerable`1 args, IEnumerable`1 scriptArgs, ScenarioDirectory directory) in C:\projects\scriptcs\test\ScriptCs.Tests.Acceptance\Support\ScriptCsExe.cs:line 163
at ScriptCs.Tests.Acceptance.Support.ScriptCsExe.Run(String scriptName, Boolean debug, IEnumerable`1 args, IEnumerable`1 scriptArgs, ScenarioDirectory directory) in C:\projects\scriptcs\test\ScriptCs.Tests.Acceptance\Support\ScriptCsExe.cs:line 79
at ScriptCs.Tests.Acceptance.CommandLine.<>c__DisplayClass0_0.<UnexpectedOption>b__3() in C:\projects\scriptcs\test\ScriptCs.Tests.Acceptance\CommandLine.cs:line 18
at Xunit.Record.Exception(Func`1 testCode) in C:\Dev\xunit\xunit\src\xunit.core\Record.cs:line 47
[xUnit.net 00:00:01.3124193] ScriptCs.Tests.Acceptance.CommandLine.UnexpectedOption() [03] And I see an error message regarding the unknown option [FAIL]
[xUnit.net 00:00:01.3128870] Should.Core.Exceptions.ContainsException : Assert.Contains() failure: Not found: unknownoption
[xUnit.net 00:00:01.3141575] Stack Trace:
[xUnit.net 00:00:01.3178008] CommandLine.cs(32,0): at ScriptCs.Tests.Acceptance.CommandLine.<>c__DisplayClass0_0.<UnexpectedOption>b__2()
[xUnit.net 00:00:01.3178814] at Xbehave.StringExtensions.<>c__DisplayClass0_0.<x>b__0(IStepContext c)
[xUnit.net 00:00:01.3179258] at Xbehave.Execution.StepInvoker.<RunAsync>b__6_1()
[xUnit.net 00:00:01.3179620] at Xbehave.Execution.Invoker.<>c__DisplayClass0_1.<<Invoke>b__1>d.MoveNext()
[xUnit.net 00:00:01.3179971] --- End of stack trace from previous location where exception was thrown ---
[xUnit.net 00:00:01.3180458] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[xUnit.net 00:00:01.3180849] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[xUnit.net 00:00:01.3181149] --- End of stack trace from previous location where exception was thrown ---
[xUnit.net 00:00:01.3181474] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[xUnit.net 00:00:01.3181818] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Failed ScriptCs.Tests.Acceptance.CommandLine.UnexpectedOption() [03] And I see an error message regarding the unknown option
Error Message:
Should.Core.Exceptions.ContainsException : Assert.Contains() failure: Not found: unknownoption
Stack Trace:
at ScriptCs.Tests.Acceptance.CommandLine.<>c__DisplayClass0_0.<UnexpectedOption>b__2() in C:\projects\scriptcs\test\ScriptCs.Tests.Acceptance\CommandLine.cs:line 32
at Xbehave.StringExtensions.<>c__DisplayClass0_0.<x>b__0(IStepContext c)
at Xbehave.Execution.StepInvoker.<RunAsync>b__6_1()
at Xbehave.Execution.Invoker.<>c__DisplayClass0_1.<<Invoke>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[xUnit.net 00:00:10.3107980] ScriptCs.Tests.Acceptance.Packages.PackageContainsAFrameworkAssemblyReference() [SKIP]
[xUnit.net 00:00:10.3110461] Failing with a path length exception
Skipped ScriptCs.Tests.Acceptance.Packages.PackageContainsAFrameworkAssemblyReference()
Standard Output Messages:
Failing with a path length exception
[xUnit.net 00:00:40.1281151] ScriptCs.Tests.Acceptance.ScriptLibraries.UsingAMethodInAScriptLibraryInTheRepl() [SKIP]
[xUnit.net 00:00:40.1282462] Failing with a path length exception
Skipped ScriptCs.Tests.Acceptance.ScriptLibraries.UsingAMethodInAScriptLibraryInTheRepl()
Standard Output Messages:
Failing with a path length exception
[xUnit.net 00:01:12.7440779] Finished: ScriptCs.Tests.Acceptance
Total tests: 111. Passed: 108. Failed: 1. Skipped: 2.
Test Run Failed.
Test execution time: 1.2248 Minutes
Running build failed.
Error:
System.Exception: Test failed on "test" --configuration Release --no-build
at Fake.DotNetCli.Test@298-3.Invoke(String message) in D:\code\fake\src\app\FakeLib\DotNetCLIHelper.fs:line 298
at Fake.DotNetCli.Test(FSharpFunc`2 setTestParams) in D:\code\fake\src\app\FakeLib\DotNetCLIHelper.fs:line 298
at FSI_0005.Build.clo@39-6.Invoke(String p) in C:\projects\scriptcs\build.fsx:line 40
at Microsoft.FSharp.Collections.SeqModule.Iterate[T](FSharpFunc`2 action, IEnumerable`1 source)
at FSI_0005.Build.clo@30-5.Invoke(Unit _arg3) in C:\projects\scriptcs\build.fsx:line 38
at Fake.TargetHelper.runSingleTarget(TargetTemplate`1 target) in D:\code\fake\src\app\FakeLib\TargetHelper.fs:line 626
We have 1-2 flaky acceptance test that sometimes pass, sometimes fail
For example: