mirror of
https://github.com/Smaug123/unofficial-nunit-runner
synced 2025-10-06 01:48:38 +00:00
Compare commits
2 Commits
WoofWare.N
...
WoofWare.N
Author | SHA1 | Date | |
---|---|---|---|
|
d3f9ee6b02 | ||
|
3e6fff27d6 |
@@ -168,8 +168,6 @@ module TestFixture =
|
|||||||
| "NUnit.Framework.IgnoreException" -> Ok (Some (TestMemberSuccess.Ignored (Option.ofObj exc.Message)))
|
| "NUnit.Framework.IgnoreException" -> Ok (Some (TestMemberSuccess.Ignored (Option.ofObj exc.Message)))
|
||||||
| "NUnit.Framework.InconclusiveException" ->
|
| "NUnit.Framework.InconclusiveException" ->
|
||||||
Ok (Some (TestMemberSuccess.Inconclusive (Option.ofObj exc.Message)))
|
Ok (Some (TestMemberSuccess.Inconclusive (Option.ofObj exc.Message)))
|
||||||
| s when s.StartsWith ("NUnit.Framework.", StringComparison.Ordinal) ->
|
|
||||||
failwith $"Unrecognised special exception: %s{s}"
|
|
||||||
| _ -> Error orig
|
| _ -> Error orig
|
||||||
| Error orig -> Error orig
|
| Error orig -> Error orig
|
||||||
|
|
||||||
@@ -542,6 +540,12 @@ module TestFixture =
|
|||||||
/// Interpret this type as a [<TestFixture>], extracting the test members from it and annotating them with all
|
/// Interpret this type as a [<TestFixture>], extracting the test members from it and annotating them with all
|
||||||
/// relevant information about how we should run them.
|
/// relevant information about how we should run them.
|
||||||
let parse (parentType : Type) : TestFixture =
|
let parse (parentType : Type) : TestFixture =
|
||||||
|
if
|
||||||
|
parentType.CustomAttributes
|
||||||
|
|> Seq.exists (fun attr -> attr.AttributeType.FullName = "NUnit.Framework.SetUpFixtureAttribute")
|
||||||
|
then
|
||||||
|
failwith "This test runner does not support SetUpFixture. Please shout if you want this."
|
||||||
|
|
||||||
let categories =
|
let categories =
|
||||||
parentType.CustomAttributes
|
parentType.CustomAttributes
|
||||||
|> Seq.filter (fun attr -> attr.AttributeType.FullName = "NUnit.Framework.CategoryAttribute")
|
|> Seq.filter (fun attr -> attr.AttributeType.FullName = "NUnit.Framework.CategoryAttribute")
|
||||||
|
Reference in New Issue
Block a user