Skip to content

Commit

Permalink
Merge pull request #591 from Krzysztof-Cieslak/NUnitFixture
Browse files Browse the repository at this point in the history
Add support for NUnit Fixture parameter
  • Loading branch information
forki committed Nov 12, 2014
2 parents 0562339 + e1791f9 commit 542b1ff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/FakeLib/UnitTest/NUnit/Common.fs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ type NUnitParams =
TimeOut : TimeSpan
DisableShadowCopy : bool
Domain : NUnitDomainModel
ErrorLevel : NUnitErrorLevel }
ErrorLevel : NUnitErrorLevel
Fixture: string}

/// NUnit default parameters. FAKE tries to locate nunit-console.exe in any subfolder.
let NUnitDefaults =
Expand All @@ -75,7 +76,8 @@ let NUnitDefaults =
TimeOut = TimeSpan.FromMinutes 5.0
DisableShadowCopy = false
Domain = DefaultDomainModel
ErrorLevel = Error }
ErrorLevel = Error
Fixture = ""}

/// Builds the command line arguments from the given parameter record and the given assemblies.
/// [omit]
Expand All @@ -96,6 +98,7 @@ let buildNUnitdArgs parameters assemblies =
|> appendIfNotNullOrEmpty parameters.ProcessModel.ParamString "-process:"
|> appendIfNotNullOrEmpty parameters.ErrorOutputFile "-err:"
|> appendIfNotNullOrEmpty parameters.Domain.ParamString "-domain:"
|> appendIfNotNullOrEmpty parameters.Fixture "-fixture:"
|> toText

/// Tries to detect the working directory as specified in the parameters or via TeamCity settings
Expand Down

0 comments on commit 542b1ff

Please sign in to comment.