Skip to content

Commit

Permalink
Merge pull request #652 from brianary/SpecFlowBug
Browse files Browse the repository at this point in the history
Fix SpecFlow MSTest integration
  • Loading branch information
forki committed Feb 12, 2015
2 parents 678ea11 + 198fc2c commit 61e1896
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/FakeLib/SpecFlowHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 61e1896

Please sign in to comment.