Developer Notes

This is by design as hot-reload only effects classes derived from UCLASS types.

Description

After making a change to an automation test function and triggering a hot reload, the changes are not reflected the next time the text is ran.

Steps to Reproduce
  1. Open UE4Editor (code project)
  2. Add code to project based on Actor (MyActor)
  3. In my Actor.cpp, add the following just below the include statements:
    #include "AutomationTest.h"
    
    IMPLEMENT_SIMPLE_AUTOMATION_TEST(FHotReloadExampleTest, "Test.MyCategoriesHere", EAutomationTestFlags::ATF_Editor)
    
    bool FHotReloadExampleTest::RunTest(const FString& Parameters)
    {
    	UE_LOG(LogTemp, Warning, TEXT("Before Hot-Reload"));
    
    	return true;
    }
    
  4. Compile the code
  5. In the editor open Windows->Developer Tools->Session Frontend
  6. Make sure that the drop down at the top is set to "This Application"
  7. Click the Automation tab
  8. Uncheck all boxes except for the one next to Test and Start Tests
  9. Once test finishes, expand Test drop down and select MyCategoriesHere (note the Automation Test Results box)
  10. In the code, make a change to the warning log text and compile to trigger hot reload.
  11. Rerun automation test through the Frontend

Result:
The text printed out after the hot reload has not been updated.

Expected:
Hot reload updates minor code changes without having to restart the editor.

Have Comments or More Details?

Head over to the existingAnswerHub thread and let us know what's up.

36
Login to Vote

Backlogged
ComponentAutomation
Affects Versions4.10
CreatedJan 13, 2016
UpdatedMay 31, 2019