Running tests via Unity pending/inconclusive
See original GitHub issueAfter updgrading to Rider 2018.1 and running unit tests without starting Unity on my Mac give me ‘inconclusive’ result. If I start Unity, then tests stay in pending mode without any response…
Rider EAP Build #RD-181.4379.1196
Unity: 2018.1.0b12
JRE: 1.8.0_152-release-1136-b23 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.12.6
a part of stacktrace:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Specified cast is not valid.
at NUnit.Framework.Api.FrameworkController+LoadTestsAction..ctor (NUnit.Framework.Api.FrameworkController controller, System.Object handler) [0x00008] in <d9eafad60e01411f9e6f726dccd715f8>:0
at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /Users/builder/data/lanes/5533/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:661
Issue Analytics
- State:
- Created 5 years ago
- Comments:50 (28 by maintainers)
Top Results From Across the Web
Test method is inconclusive: Test wasn't run. Error?
In my case i got this error because of 'Release' mode where build of UnitTests project was simply switched off. Switching back to...
Read more >Unity Test Coverage always fails with 'Inconclusive: Test not run'
Tests run fine when launched normally. Running them with coverage always results in 'Inconclusive: Test not run' immediately.
Read more >Debug test results in 'Inconclusive: Test not run'
Looking at the resharper log it looks like an Access Denied Exception attempting to start the tests so the tests never finish and...
Read more >Unity Test Framework 2.0 ready for feedback | Page 2
CurrentContext.Random from NUnit is null when running tests with Unity Test Framework (because UnityTestExecutionContext.RandomGenerator
Read more >Palestinian leaders hold inconclusive unity talks
Palestinian President Mahmoud Abbas held inconclusive talks on forming a unity government with Prime Minister Ismail Haniyeh on Sunday and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We had a chat with @lordlycastle about his case with TestCaseSource.
In Unity it produces 3 tests with similar names:
But for Rider it displays only one test.
Workaround is to override a ToString() in MultiplyTestCase:
In general I believe we can’t do much with it from Rider side, it requires a fix in Unity.
I can confirm this now works for me. Thanks! 👍