Can Unity Test Framework works in AndroidDevice without PC?

I want to do some test on the real android device. Can I use Unity Test Framework to do this?:slight_smile:
for example:

  1. use Unity Test Framework in my unity project
  2. then build a test.apk
  3. install test.apk on android phone
  4. launch test.apk and start test runner whenever I want without PC (maybe every time I want to invoke the unit testcase, I click a button to start it)

If can, any documentation of this?

See the Split Build and Run scenario.

Thanks!!! Really helpful!

Another question: every time the test app be launched, it enters the InitTestScenexxxx.unity to run test. Can I enter my own scene to play game, after while, I click a button to run all tests?

Bump the question. Also interested in receiving performance results from a device with help of TestFramework.
But recent version 2.0 does not have a such topic in tutorial.

Found links:
https://docs.unity3d.com/Packages/com.unity.test-framework.performance@2.7/manual/index.html
https://docs.unity3d.com/Packages/com.unity.test-framework@2.0/manual/index.html

Do you able to do that?
In my case I want to split build the game with Android device
And it turns out, every time I tried to build it, thereโ€™s error like this

Assets\Scripts\Tests\Testing.cs(2,19): error CS0234: The type or namespace name 'TestTools' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

But this error only appears when I tried to "run All test (android)
8672250--1168347--upload_2022-12-19_15-4-57.png
So when I edit the code, there are no such a problem ._.

Hi! Have you solved this problem? I want to do this.