From e1791f928edf79a36bf5eb7cf1d4228743182011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Cie=C5=9Blak?= Date: Wed, 12 Nov 2014 15:07:03 +0100 Subject: [PATCH] Add support for NUnit Fixture parameter --- src/app/FakeLib/UnitTest/NUnit/Common.fs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/FakeLib/UnitTest/NUnit/Common.fs b/src/app/FakeLib/UnitTest/NUnit/Common.fs index 7f4d120a4f8..199eac34562 100644 --- a/src/app/FakeLib/UnitTest/NUnit/Common.fs +++ b/src/app/FakeLib/UnitTest/NUnit/Common.fs @@ -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 = @@ -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] @@ -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