JetBrains / JetBrains/resharper-unity
Resharper: Running Unit Test from a Unity .csproj results in Inconclusive Test and Error
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
It seems the Unity Test runner and the Resharper Test runner are incompatible? It is of great value to be able to run unit tests from resharper that have no Unity dependency.
I cannot figure out why all my Unit Tests that reside in my Unity project all get Inconclusive as a result
Here is my log output, i'm guessing it's something to do with nunit framework or the unity project target?
The content of my test:
` [Test]
public void Test()
{
Assert.Pass();
}`
Error thrown is as follows:
`ERROR System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Unable to cast transparent proxy to type 'System.Web.UI.ICallbackEventHandler'.
at NUnit.Framework.Api.FrameworkController.LoadTestsAction..ctor(FrameworkController controller, Object handler)`
The Log output:
https://pastebin.com/23TTQg4k
Contributor guide
Assessment
This issue has not been assessed yet.