Skip to content

Commit

Permalink
Merge pull request #824 from flashcurd/nunit-parallel-setupfixture
Browse files Browse the repository at this point in the history
Allow test nUnit test assemblies containing SetupFixture attributes be compatible with NUnitParallel
  • Loading branch information
forki committed Jun 1, 2015
2 parents 3b94085 + c47f2dd commit d83f7e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/FakeLib/UnitTest/NUnit/Xml.fs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ let inline private elem name = XElement(imp name : XName)
/// [omit]
let GetTestAssemblies(xDoc : XDocument) =
xDoc.Descendants()
|> Seq.filter (fun el -> el.Name = (imp "test-suite") && el.Attribute(imp "type").Value = "Assembly")
|> Seq.filter
(fun el ->
el.Name = (imp "test-suite") &&
(el.Attribute(imp "type").Value = "Assembly" || el.Attribute(imp "type").Value = "SetUpFixture"))
|> Seq.toList

/// Returns whether all tests in the given test result have succeeded
Expand Down

0 comments on commit d83f7e3

Please sign in to comment.