mirror of
https://github.com/Smaug123/unofficial-nunit-runner
synced 2025-12-16 02:05:39 +00:00
Compare commits
2 Commits
WoofWare.N
...
WoofWare.N
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb4dfae8f4 | ||
|
|
78f51d127c |
@@ -230,6 +230,27 @@ module TestFixture =
|
|||||||
(test : SingleTestMethod)
|
(test : SingleTestMethod)
|
||||||
: (Result<TestMemberSuccess, TestMemberFailure> * IndividualTestRunMetadata) list
|
: (Result<TestMemberSuccess, TestMemberFailure> * IndividualTestRunMetadata) list
|
||||||
=
|
=
|
||||||
|
if test.Method.ContainsGenericParameters then
|
||||||
|
let failureMetadata =
|
||||||
|
{
|
||||||
|
Total = TimeSpan.Zero
|
||||||
|
Start = DateTimeOffset.Now
|
||||||
|
End = DateTimeOffset.Now
|
||||||
|
ComputerName = Environment.MachineName
|
||||||
|
ExecutionId = Guid.NewGuid ()
|
||||||
|
TestId = Guid.NewGuid ()
|
||||||
|
TestName = test.Name
|
||||||
|
ClassName = test.Method.DeclaringType.FullName
|
||||||
|
StdErr = None
|
||||||
|
StdOut = None
|
||||||
|
}
|
||||||
|
|
||||||
|
let error =
|
||||||
|
TestMemberFailure.Malformed [ "Test contained generic parameters; generics are not supported." ]
|
||||||
|
|
||||||
|
(Error error, failureMetadata) |> List.singleton
|
||||||
|
else
|
||||||
|
|
||||||
let resultPreRun =
|
let resultPreRun =
|
||||||
(None, test.Modifiers)
|
(None, test.Modifiers)
|
||||||
||> List.fold (fun _result modifier ->
|
||> List.fold (fun _result modifier ->
|
||||||
|
|||||||
@@ -401,6 +401,7 @@ module Program =
|
|||||||
let contents = TrxReport.toXml report |> fun d -> d.OuterXml
|
let contents = TrxReport.toXml report |> fun d -> d.OuterXml
|
||||||
trxPath.Directory.Create ()
|
trxPath.Directory.Create ()
|
||||||
File.WriteAllText (trxPath.FullName, contents)
|
File.WriteAllText (trxPath.FullName, contents)
|
||||||
|
Console.Error.WriteLine $"Written TRX file: %s{trxPath.FullName}"
|
||||||
| None -> ()
|
| None -> ()
|
||||||
|
|
||||||
match outcome with
|
match outcome with
|
||||||
|
|||||||
Reference in New Issue
Block a user