Fix IS_RUNNING_UNIT_TESTS not being set in the right place

This commit is contained in:
Stefan Ceriu 2023-04-21 09:21:08 +03:00 committed by Stefan Ceriu
parent 6700d4301d
commit 7a1cbdf6b1
3 changed files with 6 additions and 4 deletions

View File

@ -36,8 +36,6 @@ schemes:
testPlans:
- path: ../../UnitTests/SupportingFiles/UnitTests.xctestplan
defaultPlan: true
environmentVariables:
IS_RUNNING_UNIT_TESTS: "1"
targets:
ElementX:

View File

@ -10,6 +10,12 @@
],
"defaultOptions" : {
"defaultTestExecutionTimeAllowance" : 60,
"environmentVariableEntries" : [
{
"key" : "IS_RUNNING_UNIT_TESTS",
"value" : "1"
}
],
"testTimeoutsEnabled" : true
},
"testTargets" : [

View File

@ -14,8 +14,6 @@ schemes:
run:
config: Debug
disableMainThreadChecker: false
environmentVariables:
IS_RUNNING_UNIT_TESTS: "1"
test:
config: Debug
disableMainThreadChecker: false