From 198fc2c18bbf24245f3fb9cb0e2c9df339ce236a Mon Sep 17 00:00:00 2001 From: brianary Date: Tue, 10 Feb 2015 23:39:02 -0800 Subject: [PATCH] Fix SpecFlow MSTest integration SpecFlow uses different parameters for MSTest than it does for NUnit (see "specflow help mstestexecutionreport"). --- src/app/FakeLib/SpecFlowHelper.fs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/FakeLib/SpecFlowHelper.fs b/src/app/FakeLib/SpecFlowHelper.fs index a98818638b4..928f9d3b631 100644 --- a/src/app/FakeLib/SpecFlowHelper.fs +++ b/src/app/FakeLib/SpecFlowHelper.fs @@ -51,13 +51,16 @@ let SpecFlow setParams = let tool = parameters.ToolPath @@ parameters.ToolName + let isMsTest = toLower >> ((=) "mstestexecutionreport") + let commandLineBuilder = new StringBuilder() |> append parameters.SubCommand |> append parameters.ProjectFile |> appendIfNotNull parameters.BinFolder "/binFolder:" |> appendIfNotNull parameters.OutputFile "/out:" - |> appendIfNotNull parameters.XmlTestResultFile "/xmlTestResult:" + |> appendIfNotNull parameters.XmlTestResultFile + (if isMsTest parameters.SubCommand then "/testResult:" else "/xmlTestResult:") |> appendIfNotNull parameters.TestOutputFile "/testOutput:" |> appendIfTrue parameters.Verbose "/verbose" |> appendIfTrue parameters.ForceRegeneration "/force"