TestFramework other than unity TestFramework?

Hi, Just started working on VR application, could you guys suggest me on best way to get my VR testcases automated other than unityTestFramework?

You’d have to write a class library with NO references to UnityEngine/UnityEditor, then you could use NUnit, xUnit, etc. from within your IDE.

But as soon as you use any of the Unity API you will have to use the TestRunner, and TestRunner only.

Alternatively you’d have to mock up every Unity API that you are calling using interfaces/mock objects. But even so you would not be able to test anything that progresses over time such as coroutines or physics.

Why are you asking?
If it’s because of slow test runs, see this thread:

Thank you for the answers! Reason why i’m asking, I’m coming from web application testing background where we can use extendedReports to report our automation test results. Not seeing that here, is there any way to report my test results than just seeing greentick inthe testRunner.

You’ll want to try the Code Coverage package.

Personally I’m just using dotCover now, a (paid) plugin for Rider. Both support running Unity TestRunner tests from within the IDE albeit I currently am seeing slowdown issues and have reported several bugs.

There are other solutions as well, if you don’t mind the hefty price tag NDepend is a powerful tool that will analyze test run coverage and provide you with plenty of info.

Thanks. I’ll see if its fit my requirement.

You can also get the test results as XML when running from the command line.