Failed to run tests from command line

11 views
Skip to first unread message

Amit Reuveni

unread,
Jun 9, 2022, 9:27:07 AM6/9/22
to AltUnity - UI test automation tool for Unity3D
Hello all, I'm trying to run some tests I wrote from the command line. I followed the instructions on https://altom.gitlab.io/altunity/altunitytester/pages/advanced-usage.html but I get errors when I try to run the tests from the command line.
I did manage to make a build, an apk, following the instructions on "build games from command line" section, but after running the following command:

Unity -projectPath C:\Users\Amit\Documents\spadesroyale-client-new -executeMethod AltUnityTestRunner.RunTestFromCommandLine -tests NewAltUnityTest.ChangeNameTest -logFile C:\Users\Amit\Documents\spadesroyale-client-new\Logs\altunity.txt -batchmode -quit

I get the following output:

C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor>
Aborting batchmode due to failure:
executeMethod class 'AltUnityTestRunner' could not be found.
Argument was -executeMethod AltUnityTestRunner.RunTestFromCommandLine

Thanks

Reply all
Reply to author
Forward
0 new messages