I tried the command for testing ElementalDemo in UE document:
RunUAT RunUnreal -project=Samples/Showcases/ElementalDemo -platform=Win64 -configuration=Development -build=local -test=ElementalDemoTest
But it cause the error “Can’ not find project file for Samples/Showcases/ElementalDemo/ElementalDemo”.
It should use full project name at the “-project” part, and “-build” should set to the StageBuilds folder:
RunUAT RunUnreal -project=Samples/Showcases/ElementalDemo/ElementalDemo.uproject -platform=Win64 -configuration=Development -test=ElementalDemoTest -build=Samples\Showcases\ElementalDemo\Saved\StagedBuilds
I hope this will be useful to anyone who encounter the same problem.