How do I run a specific test using the command line?
I've written a sample test case using a modified version of Unity UI Test Automation Framework to automatically click the "OK" button of a dialog box. I would like to run just this specific test via the command line. The command I'm using is as follows:
unity -runTests -projectPath <project path> -testResults <result file path> -testPlatform playmode -editorTestsFilter TestCloseButton
However, the command runs still runs all tests even with the editorTestsFilter
option. I'm aware there's an issue where the editorTestsFilter
is ignored in batch mode, but running the command without batch mode didn't make any difference. Does this issue have anything to do with what I'm experiencing? If so, is there a workaround?
For the record, I'm running Unity 2017.2.0p2 on Windows 10 Pro.
Thanks in advance.
Your answer
Follow this Question
Related Questions
GameTestAutomationExample 1 Answer
Test runner errors InvalidOperationException and TreeView root item is null 1 Answer
What testing automation tool are you using? 1 Answer
Unity Test Runner - Testing Unity Editor UI 0 Answers
Unet load testing 0 Answers