Commit Graph

32 Commits

Author SHA1 Message Date
sebastian lewicki
5bdc2a49e5 [CQTest] Added tests for newly exposed AddInfo, AddWarning, and AddErrorIfFalse methods.
#rnx

[CL 27847177 by sebastian lewicki in ue5-main branch]
2023-09-13 16:07:55 -04:00
sebastian lewicki
eaa57c9316 [CQTest] Exposed the methods for AddInfo, AddWarning, AddError, AddErrorIfFalse, and AddEvent to TBaseTest. Marked AddErrorS and AddWarningS for deprecation.
#rnx

[CL 27652366 by sebastian lewicki in ue5-main branch]
2023-09-06 16:58:47 -04:00
sebastian lewicki
6b2cd91f1c [CQTest] Added #include "Modules/ModuleManager.h" to resolve a failing NonUnity build.
#rnx

[CL 27603289 by sebastian lewicki in ue5-main branch]
2023-09-05 13:32:32 -04:00
sebastian lewicki
f080c2f542 Fixing UWorld name conflicts by making sure that the name is globally unique when creating the UWorld object for testing. Profiling the change under the Development Editor has shown a negligible hit in performance (less than a second) when running the CQTests with this change.
#jira UE-193849
#rnx

[CL 27389184 by sebastian lewicki in ue5-main branch]
2023-08-25 15:44:02 -04:00
kirill zorin
66c882e375 Fix instances of incorrect usage of UE_LOG.
#rb trivial

[CL 27306121 by kirill zorin in ue5-main branch]
2023-08-23 11:04:15 -04:00
Jerome Delattre
31881299d9 Add support for plain text to FAutomationTestBase::AddExpectedMessage
#jira UE-190032
#rb Chris.Constantinescu, Rob.Huyett

[CL 27118558 by Jerome Delattre in ue5-main branch]
2023-08-15 16:21:05 -04:00
christopher waters
1c99959e3e Fixing IWYU compiles
[CL 26353592 by christopher waters in ue5-main branch]
2023-06-30 16:11:56 -04:00
jerome delattre
ad5365867d [CQTest] Use Transient package to hold transient world from Actor spawner helper
#rnx
#rb Ben.Parbury(Microsoft)

[CL 26161703 by jerome delattre in ue5-main branch]
2023-06-21 16:41:59 -04:00
Jerome Delattre
8bc0294f86 [CQTest] avoid instanting test when no automation worker are built
#rnx
#rb Dustin.Randal(microsoft)

[CL 26049916 by Jerome Delattre in ue5-main branch]
2023-06-16 09:48:28 -04:00
Jerome Delattre
fa9e786f70 [ CQTest] Remove a duplicated test
#rnx
#rb trivial

[CL 26024910 by Jerome Delattre in ue5-main branch]
2023-06-15 16:31:15 -04:00
drandall-microsoft
9564be550d [CQTest] Fixed FWaitUntil grabbing start time at construction instead of on first update
Fixed ActorTestSpawner's tear down of objects

#rnx
#jira UE-187959

[CL 26019006 by drandall-microsoft in ue5-main branch]
2023-06-15 13:34:39 -04:00
Jerome Delattre
d13fec7876 [CQTest] Implement assert test conditions instead of using the one from FAutomationTestBase to control messaging and interface.
+ fix enum to string handling

#rnx
#rb Dustin.Randal(microsoft)

[CL 26018964 by Jerome Delattre in ue5-main branch]
2023-06-15 13:34:04 -04:00
Jerome Delattre
6f98ecd969 [CQTest] Use UE_NODISCARD macro instead of [[nodiscard]]
#rnx
#rb trivial

[CL 25856339 by Jerome Delattre in ue5-main branch]
2023-06-07 16:19:04 -04:00
Jerome Delattre
bf5eb71be3 [CQTest] Add interface to set SuppressWarnings and SuppressErrors from TestRunner
#jira UE-187597
#rnx
#rb Chris.Constantinescu, Dustin.Randal(microsoft)

[CL 25815131 by Jerome Delattre in ue5-main branch]
2023-06-06 10:02:00 -04:00
Jerome Delattre
105570ccd6 CQTest - better support enum uint8/int8 when converting to string
#preflight 6471019a40698940de360832
#rnx
#rb Dustin.Randal(microsoft)

[CL 25651007 by Jerome Delattre in ue5-main branch]
2023-05-26 15:32:30 -04:00
Jerome Delattre
e006c09a04 Introduce ASSERT_FAIL macro alias to Assert.Fail(Msg); return;
#preflight 646f6a041b241f0748bde19d
#rb Dustin.Randal(microsoft), Chris.Constantinescu
#rnx

[CL 25634084 by Jerome Delattre in ue5-main branch]
2023-05-25 19:09:12 -04:00
Jerome Delattre
0c86e6bc9e CQTest - Implement FActorTestSpawner::GetGameIntance()
#preflight 64650b8c2d446eac96e518e0
#rb Ben.Parbury(microsoft)
#rnx

[CL 25516065 by Jerome Delattre in ue5-main branch]
2023-05-17 16:45:37 -04:00
Jerome Delattre
627bee78dc fix static analysis warning in PIENetworkComponent
#preflight 6463d18b063e77985c2d7fe9
#rb trivial
#rnx

[CL 25494510 by Jerome Delattre in ue5-main branch]
2023-05-16 15:10:37 -04:00
Jerome Delattre
338760c296 Fix PIENetworkComponent.cpp(89): error C2653: 'FAutomationEditorCommonUtils': is not a class or namespace name on CookedEditor
ENABLE_PIE_NETWORK_TEST needs WITH_AUTOMATION_TESTS

#jira UE-185967
#rnx
#preflight 6463b3e0c34c2e12121f364d
#rb Dustin.Randal(microsoft)

[CL 25492711 by Jerome Delattre in ue5-main branch]
2023-05-16 13:31:41 -04:00
Jerome Delattre
1213ea8fa9 Fix ASan error heap-use-after-free in FPIENetworkTestStateRestorer
Delay Garbage collection when a test start and Force it at the end of a test
Add a Teardown queue to test command builder

#preflight 645d0975ea1c7ba4d6a8e153
#rnx
#rb Dustin.Randal(microsoft)

[CL 25473966 by Jerome Delattre in ue5-main branch]
2023-05-15 10:54:19 -04:00
Jerome Delattre
6a16bc9c0d Fix NonUnity Compile UnrealGame IOS in CQTestUnitTestHelper.cpp and TestReplicatedActor.cpp
#jira UE-185551
#rnx
#rb trivial
#preflight 645bb93ae21f2acad2eeb427

[CL 25407309 by Jerome Delattre in ue5-main branch]
2023-05-10 12:14:38 -04:00
Jerome Delattre
22a2894b46 Change a CQ test flag from Smoke test to Engine test
#rnx
#preflight 645bbc7c41461eaa41681ef7
#rb trivial

[CL 25406857 by Jerome Delattre in ue5-main branch]
2023-05-10 11:59:05 -04:00
Jerome Delattre
e7a3fa669d Actually used InGame parameter in PIENetworkTestStateRestorer
#preflight 64595abf2d27fa25b3b082a2
#rb trivial
#rnx
#jira UE-184128

[CL 25377474 by Jerome Delattre in ue5-main branch]
2023-05-08 16:45:31 -04:00
Jerome Delattre
71fd0384b7 PR #10379: First pass at network tests
#preflight 64526551d863ba26211bf062
#rb Jerome.Delattre
#jira UE-184128

[CL 25375194 by Jerome Delattre in ue5-main branch]
2023-05-08 15:16:20 -04:00
Jerome Delattre
f0ed889ab8 CQTest - Make GetWorld public in FSpawnHelper
#author Ben.Pardury(beparbur@microsoft.com)
#preflight 642ed3a2427eda56262f9b64
#rb jerome.delattre
#rnx

[CL 24944330 by Jerome Delattre in ue5-main branch]
2023-04-06 10:56:22 -04:00