If an ensure() fails within an automated test, the test can still show a successful result.

Steps to Reproduce
  1. Create a new custom automated test.
  2. Inside the test, include the following lines of code:
    return true;
  3. Run the new automated test.

The ensure will fail and generate a callstack in the log, but the test will be marked as successful.

The ensure fails and the test is marked as having failed.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-19579 in the post.

Login to Vote

ComponentUE - Automation Test
Affects Versions4.8.34.10
Target Fix4.13
Fix Commit2971151
Main Commit2973886
CreatedAug 4, 2015
ResolvedMay 9, 2016
UpdatedApr 27, 2018