Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8564d58439 | |||
| 8d1679bef7 | |||
| ed266339f2 | |||
| cb9c9019f3 | |||
| 18583d394d | |||
| 5c92d08841 |
@@ -1,12 +1,20 @@
|
||||
# xunit.runner.wpf
|
||||
# speckle.xunit.runner.wpf
|
||||
|
||||
[](https://teocomi.visualstudio.com/Speckle/_build/latest?definitionId=1&branchName=master)
|
||||
[](https://teocomi.visualstudio.com/Speckle/_build/latest?definitionId=4&branchName=master)
|
||||
|
||||
XUnit Gui written in WPF
|
||||
|
||||
Fork of [xunit.runner.wpf](https://www.nuget.org/packages/xunit.runner.wpf).
|
||||
|
||||
This version, currently in WIP, uses the [AssemblyRunner](xunit.v3.runner.utility) found in xunit.v3.runner.utility to run the tests so that the external dlls are loaded in the same AppDomain.
|
||||
This fork, uses the [AssemblyRunner](https://github.com/xunit/xunit/blob/main/src/xunit.v3.runner.utility/Runners/AssemblyRunner.cs) of xunit.v3.runner.utility to run the tests so that the external dlls are loaded via reflection in the same AppDomain.
|
||||
This is necessary when running unit tests of code hosted by external applications (Revit etc).
|
||||
|
||||
Coming soon, a xunit runner for Revit.
|
||||
NuGet package: https://www.nuget.org/packages/speckle.xunit.runner.wpf/
|
||||
|
||||
Sample application using it: https://github.com/Speckle-Next/xUnitRevit
|
||||
|
||||
Many thanks to all the developers of xunit and xunit.runner.wpf!
|
||||
|
||||
|
||||
|
||||
Check out our blog post on this 👉 https://speckle.systems/blog/xunitrevit !
|
||||
|
||||
@@ -332,7 +332,7 @@ namespace Xunit.Runners
|
||||
|
||||
if (DispatchMessage<ITestAssemblyFinished>(message, messageTypes, assemblyFinished =>
|
||||
{
|
||||
|
||||
|
||||
OnExecutionComplete?.Invoke(new ExecutionCompleteInfo(assemblyFinished.TestsRun, assemblyFinished.TestsFailed, assemblyFinished.TestsSkipped, assemblyFinished.ExecutionTime));
|
||||
tcs.TrySetResult("");
|
||||
}))
|
||||
@@ -342,7 +342,7 @@ namespace Xunit.Runners
|
||||
if (DispatchMessage<IDiagnosticMessage>(message, messageTypes, m => OnDiagnosticMessage(new DiagnosticMessageInfo(m.Message))))
|
||||
return !cancelled;
|
||||
if (OnTestFailed != null)
|
||||
if (DispatchMessage<ITestFailed>(message, messageTypes, m => OnTestFailed(new TestFailedInfo(m.TestClass.Class.Name, m.TestMethod.Method.Name, m.TestCase.Traits, m.Test.DisplayName, m.TestCollection.DisplayName, m.ExecutionTime, m.Output, m.ExceptionTypes.FirstOrDefault(), m.Messages.FirstOrDefault(), m.StackTraces.FirstOrDefault()))))
|
||||
if (DispatchMessage<ITestFailed>(message, messageTypes, m => OnTestFailed(new TestFailedInfo(m.TestClass.Class.Name, m.TestMethod.Method.Name, m.TestCase.Traits, m.Test.DisplayName, m.TestCollection.DisplayName, m.ExecutionTime, m.Output, string.Join("\n\n", m.ExceptionTypes), string.Join("\n\n", m.Messages), string.Join("\n\n", m.StackTraces)))))
|
||||
return !cancelled;
|
||||
if (OnTestFinished != null)
|
||||
if (DispatchMessage<ITestFinished>(message, messageTypes, m => OnTestFinished(new TestFinishedInfo(m.TestClass.Class.Name, m.TestMethod.Method.Name, m.TestCase.Traits, m.Test.DisplayName, m.TestCollection.DisplayName, m.ExecutionTime, m.Output))))
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
<PackageIcon></PackageIcon>
|
||||
<PackageIconUrl>https://avatars2.githubusercontent.com/u/2092016</PackageIconUrl>
|
||||
<PackageIconUrl>https://avatars2.githubusercontent.com/u/2092016</PackageIconUrl>
|
||||
<Version>1.0.8</Version>
|
||||
<AssemblyVersion>1.0.8.0</AssemblyVersion>
|
||||
<FileVersion>1.0.8.0</FileVersion>
|
||||
<Version>1.0.9</Version>
|
||||
<AssemblyVersion>1.0.9.0</AssemblyVersion>
|
||||
<FileVersion>1.0.9.0</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user