Test UE5 - BredaUniversityGames/JenkinsLib GitHub Wiki
Runs Unreal Engine 5 automation tests and publishes JUnit results to Jenkins.
stages {
perforce.sync()
ue5.build()
ue5.test()
// ...
}Note:
ue5.test()must be used withue5.build()— it depends on the build context (engine root, project path, config, platform).
| Parameter | Default | Description |
|---|---|---|
UE5_TEST_MODE |
RunAll |
Test mode: RunAll, RunNamed, or RunFiltered
|
UE5_TEST_NAMES |
(empty) | Semicolon-separated test names (for RunNamed mode) |
UE5_TEST_FILTER |
Product |
Filter category (for RunFiltered mode): Product, Smoke, Engine, Stress, Perf
|
Runs every automation test in the project. Simple but slow for large projects.
Runs specific tests by name. Separate multiple tests with semicolons:
MyGame.Tests.Combat;MyGame.Tests.Inventory
Runs tests matching a category filter:
| Filter | Description |
|---|---|
Product |
Game-specific tests |
Smoke |
Quick sanity checks |
Engine |
Engine-level tests |
Stress |
Performance stress tests |
Perf |
Performance benchmarks |
- Launches
UnrealEditor-Cmd.exewith automation test commands - Exports results to
Logs/UnitTestsReport/index.json - Converts UE5 JSON results to JUnit XML format
- Publishes JUnit results to Jenkins (visible in the job's Test Results tab)
- Marks the build as
UNSTABLEif any tests fail (does not fail the build) - Stores test results in
ctx.testResultsfor notification modules