Commit Graph

108 Commits

Author SHA1 Message Date
chris constantinescu
17f311b972 Get active test info implemented into Catch2
#jira UE-201152
#rb rob.huyett, sebastian.lewicki

[CL 30428970 by chris constantinescu in ue5-main branch]
2023-12-21 11:46:29 -05:00
chris constantinescu
e53e2611f7 Catch2 - enable exceptions for all platforms (allows SKIP to work properly)
#rb sebastian.lewicki
#jira UE-201146

[CL 30216424 by chris constantinescu in ue5-main branch]
2023-12-08 14:07:38 -05:00
chris constantinescu
0f67165952 Fix compilation error when building implcit tests
#rb sebastian.lewicki, stephen.ma
#jira UE-201512

[CL 29999694 by chris constantinescu in ue5-main branch]
2023-11-29 16:58:22 -05:00
chris constantinescu
6960d95832 Upgrade Catch2 to 3.4.0
#jira UE-198978
#rb sebastian.lewicki-qa-sdets

[CL 29897708 by chris constantinescu in ue5-main branch]
2023-11-22 16:52:08 -05:00
rafa lecina
92ff150bd2 Improve logs for LowLeveltests by including captured/scoped info data when assertions are triggered
#jira UE-192858
[REVIEW] [at]Stephen.Ma, [at]Chris.Constantinescu, [at]Michael.Kirzinger

[CL 28378083 by rafa lecina in ue5-main branch]
2023-10-02 10:51:26 -04:00
chris constantinescu
1aeb7faa75 LLT: Pre-analyse dependency graph of low level test targets before setting compilation flags for UE components
Use -Mode=Test by default for all LLT Project to enable pre-analysis of dependency graph.
#jira UE-193632
#rb Sean.Sweeney

[CL 28313218 by chris constantinescu in ue5-main branch]
2023-09-28 06:52:15 -04:00
chris constantinescu
28361ac31d LLT: Fix no stdout for Linux tests
#jira UE-195640
#rb ue-qa-sdets

[CL 28199971 by chris constantinescu in ue5-main branch]
2023-09-25 15:21:03 -04:00
rafa lecina
b5bde7ae39 Improve tests log output when an assertion is triggered so it shows both the expression and the expanded expression if possible
Add Catch::StringConvetrer specialization for FOnlineError in OnlineTests and improved checks to be more informative

#jira UE-192858
[REVIEW] [at]Michael.Kirzinger, [at]Stephen.Ma, [at]Chris.Constantinescu

[CL 28123596 by rafa lecina in ue5-main branch]
2023-09-22 03:06:04 -04:00
chris constantinescu
e0a64b2e7d Low level tests documentation update to match the public one.
Moved the README into the more appropriate LowLevelTestsRunner module folder.
#jira UE-178204
#rb ue-qa-sdets

[CL 27877607 by chris constantinescu in ue5-main branch]
2023-09-14 10:05:35 -04:00
Christine Petrosyan
a8b8600dd5 Fixed an Assertion fail
#jira UE-193464
#rb stephen.ma

[CL 27239927 by Christine Petrosyan in ue5-main branch]
2023-08-21 11:16:33 -04:00
david harvey
bdb4199eeb Remove unnecessary WindowsHWrapper.h & MinWindows.h include - both files will be automatically included by AllowWindowsPlatformTypes.h
#jira UE-152863
#rnx
#rb Josh.Adams

[CL 26912096 by david harvey in ue5-main branch]
2023-08-08 05:50:53 -04:00
dave haslam
915b1b9c01 [VOS] add FOptionProperty serialization support and tests (1/2)
- copies changes for LowLevelTestRunner to 26.00

[at]chris.constantinescu

[CL 26813816 by dave haslam in ue5-main branch]
2023-08-03 12:09:49 -04:00
chris constantinescu
c45d474014 UnrealVS - do not project prepend project path for Editor configuration in the case of test targets
- Project generation will add a new IsTestTarget property in the "Globals" property group section of the project file for explicit test target projects
- UnrealVS checks for this property and does not change the command line for test targets
- TestRunner removes all project argument logic - that can be passed after --extra-args using -project="Path/To/*.uproject" and/or -projectdir="Path/To/Project"
- OSS and Online global handlers, which occur during the Catch2 session, will read project name and/or directory using SetProjectNameAndDirectory from TestCommon/Initialization.h
#jira UE-189840

[CL 26688348 by chris constantinescu in ue5-main branch]
2023-07-28 17:20:05 -04:00
stephen ma
cee64d03a5 LowLevelTests: Fix executable name being used as project path instead of the .uprogram when present.
[CL 26576133 by stephen ma in ue5-main branch]
2023-07-25 11:48:15 -04:00
stephen ma
68d83932f5 LowLevelTestRunner: Fix bug when both .uproject and --projectdir is present, projectdir is incorrectly parsed as a .uproject path instead of a directory path.
#jira UE-190516

[CL 26438719 by stephen ma in ue5-main branch]
2023-07-18 13:09:59 -04:00
chris constantinescu
6072c762ad Minor: TestRunner.cpp --no-wait option fix, generate metadata config must be in target file not build file.
Enable in BaseEngie.ini
[LowLevelTestsSettings]
bUpdateBuildGraphPropertiesFile=false

#rb Jerome.Delattre, Rob.Huyett
#jira UE-189825

[CL 26323717 by chris constantinescu in ue5-main branch]
2023-06-29 15:18:42 -04:00
stephen ma
c94bfd0067 LowLevelTests: Fix bug where --projectdir= was only allowed as the first argument. Its now allowed anywhere on path.
[CL 26210283 by stephen ma in ue5-main branch]
2023-06-23 11:02:30 -04:00
stephen ma
3dbd591598 LowLevelTests: Fix issue with nested && || warning with GCC.
[CL 26198401 by stephen ma in ue5-main branch]
2023-06-22 19:10:53 -04:00
stephen ma
d1087a6cb5 LowLevelTests: Add ability to set -ProjectDir via first paramter ending in .uproject or via -projectdir.
This should allow running LowLevelTests correctly via UnrealVS.

#jira UE-188819

[CL 26194548 by stephen ma in ue5-main branch]
2023-06-22 17:27:45 -04:00
Rafa Lecina
6a561cbde0 Add explicit dependency to Core in LowLevelTestsRunner and fix missing symbols if ApplicationCore is not included for iOS
#review @Bertrand.Carre, @Michael.Kirzinger, @Chris.Constantinescu, @Stephen.Ma
#jira UE-166445

[CL 26085994 by Rafa Lecina in ue5-main branch]
2023-06-19 05:21:24 -04:00
Rafa Lecina
254dcecc06 Fixes to be able to run tests on iOS
#review @Bertrand.Carre, @Michael.Kirzinger, @Chris.Constantinescu, @Stephen.Ma
#jira UE-166445

[CL 26006367 by Rafa Lecina in ue5-main branch]
2023-06-15 04:50:22 -04:00
robert millar
e18844e14d Add -waitfordebugger argument matching to low level test runner to match editor/game arguments
#rb none

[CL 25986029 by robert millar in ue5-main branch]
2023-06-14 13:42:52 -04:00
joe pribele
bcf1352880 finish initializing the garbage collector allowing tests to run GC
#rb Chris.Constantinescu
https://p4-swarm.epicgames.net/reviews/25665144
#preflight 6474e4595152deaa1097fb22

[CL 25667530 by joe pribele in ue5-main branch]
2023-05-29 15:37:03 -04:00
joe pribele
424b17c8c1 always initialize GWarn as its used by FScopedSlowTask
https://p4-swarm.epicgames.net/reviews/25633852

#rb Chris.Constantinescu
#preflight 6470d8669c600ef1537ddb82

[CL 25650674 by joe pribele in ue5-main branch]
2023-05-26 15:07:10 -04:00
Christine Petrosyan
a17841673c Fixed the UE_PROJECT_NAME logic, that was reversed
#jira UEUE-185576
#rb stephen.ma
#preflight 645bd27de81da34de9559339

[CL 25415910 by Christine Petrosyan in ue5-main branch]
2023-05-10 16:32:16 -04:00