Testing with Rider for Unreal Engine
Rider for Unreal Engine Preview is widely used by many game developers around the world. We have more than 32,000 people registered in the program and we’ve gotten very positive feedback from them. According to our survey of early previewers:
- 28.3% use it for all their work and personal projects
- 15.4% use it for all their work projects
- 44.3% use it for all their personal projects
81.7% of the respondents think that Rider for UE is much better than any other editor they have used before! We’re encouraged by the results and are happy to keep improving the product.
The majority of the users are impressed by the helpful integrations provided by Rider for Unreal Engine, like code completion and documentation for the Unreal Engine reflection specifiers and macros, integration with the Unreal Editor, Unreal Engine log, code visions showing Blueprints usages, and many others. Today we’re adding another piece to this game development puzzle – Unreal Engine Automation Testing framework support.
Unreal Engine tests running in Rider
To add tests to your game, there is an Unreal Engine testing framework built in (check out this 3rd party tutorial). Rider can now launch tests and show their results in the Unit Test tool window:
In this tool window you can review the results of the tests, reruns failed, and all or specific tests.
In the Unit Tests window, you can explore all the existing categories in the current solution. The categories are defined by the flags passed to the tests. Use Group By switcher to change the grouping in the tool window:
You can also run tests directly from the Unit Test tool window. Or from the Rider editor.You’ll see run icons in the left gutter near the test – click them to run the tests. These icons also show the status of the recently run tests:
Tests with EAutomationTestFlags::Disabled flag will stay disabled in Rider, and will be marked with the corresponding Ignored symbol. Inconclusive tests are aborted tests, or other tests which were started but Rider could not read the test runner output.
Configuration and known issues
Engine tests work without any additional configuration. To get Unreal Engine plugin tests running in Rider, you need to:
- Index plugins by enabling Index plugins setting in Languages & Frameworks | C++ | Unreal Engine.
- Reference the plugin that includes the tests in the .uproject file.
Later, we plan to improve the UX and show a warning in this case (RIDER-68729).
There are a few known issues that are worth mentioning here:
- Tests only work in Rider on Windows – tests on macOS are not yet supported (RIDER-68429).
- Since StressFilter is ignored by Unreal Engine, Rider doesn’t support stress tests.
- Tests with the “
‘“ symbol are not supported in Rider. This will also be resolved on the Unreal Engine side.
- Tests that don’t comply with current solution configuration will fail (RIDER-68730). For example, tests with “ClientContext” will fail to run when the “DebugGame Editor” configuration is selected.
Your Rider team
The Drive to Develop
Subscribe to Blog updates
Rider 2024.1 EAP 6: Updated New Project Dialog, Custom Naming Rules, and VCS Improvements
The latest installment in the Rider 2024.1 Early Access Program has just been released, and it’s jam-packed with updates. Before you download it, let’s take a look at the major changes. Updated New Project dialog To help reduce your cognitive load as you configure new projects, we have thor…
ReSharper 2024.1 EAP 6: The Most Feature-Rich Update Yet
The latest installment in the Early Access Program for ReSharper 2024.1 has just been released, and it's jam-packed with exciting updates. Let’s take a look at some of the highlights: Performance Faster Rename refactoring Renaming elements in your code is now faster and more efficient. T…
Rider 2024.1 EAP 5: Collections Visualizer, Sticky Lines, Improved GitHub Actions Support, and More
We are mid-way through the Early Access Program for Rider 2024, which means the EAP 5 build has just been released, bringing a host of amazing updates. But before you go to download it, let’s go over the new features this preview contains. Collections visualizer Rider 2024.1 introduces t…
Rider 2024.1 EAP 4: New Monitoring Tool Window and Blazor WASM Hot Reload for Running Applications
The fourth installment in the Early Access Program for Rider 2024.1 has just been released. But before you go to download the EAP 4 build, let’s go over the major updates it contains. New Monitoring tool window Rider 2024.1 is bringing Monitoring – a new tool window that lets you monitor y…