I have created some Functional tests using Blueprints in UE5. I would like to add these to our CI/CD pipeline, so whenever we build the game, the tests run as well.
Is there a way to do that in UE5?
I have created some Functional tests using Blueprints in UE5. I would like to add these to our CI/CD pipeline, so whenever we build the game, the tests run as well.
Is there a way to do that in UE5?
So far Iâve used the âUnrealEditor.exeâ to run my test with the -nullrhi
flag - the test seems to run but I donât get any output of whether it succeeds or not.
I am very new to UE, so any help would be greatly appreciated . Thanks.
Edit:
I got a bit farther now.
My full command at the moment looks like this:
.\UnrealEditor.exe "{Path}/MyProj.uproject" -ExecCmds="Automation RunTest FTEST_MyBPTest;quit" -TestExit="Automation Test Queue Empty" -log -nosplash -Unattended -nopause -NullRHI -ReportOutputPath="{PathToOutputFolder}"
I get a json file with all tests that have succeeded/failed, but in order to stop my CI/CD pipeline (if a test failed) would be to parse this file and check for any failed tests. Isnât there an easier way to do this?
we had the same issue and then we implemented the same solution:
parsing the json file to get test results and if thereâs any failed test quit the pipeline step with an âexit 1â to raise the error