Move PreviewTests into their own scheme. (#2492)

* Use xcresultparser for coverage as there are 2 schemes now.
This commit is contained in:
Doug
2024-02-22 15:13:52 +00:00
committed by GitHub
parent 661a3538b4
commit cdee371443
271 changed files with 367 additions and 40 deletions

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

View File

@@ -0,0 +1,32 @@
{
"configurations" : [
{
"id" : "D789E5F1-30B8-4A23-B20E-281ACE05CFD6",
"name" : "Default",
"options" : {
}
}
],
"defaultOptions" : {
"defaultTestExecutionTimeAllowance" : 60,
"environmentVariableEntries" : [
{
"key" : "IS_RUNNING_UNIT_TESTS",
"value" : "1"
}
],
"testExecutionOrdering" : "random",
"testTimeoutsEnabled" : true
},
"testTargets" : [
{
"target" : {
"containerPath" : "container:ElementX.xcodeproj",
"identifier" : "7A17BE29BAC81ADBAC6349D9",
"name" : "PreviewTests"
}
}
],
"version" : 1
}

View File

@@ -0,0 +1,51 @@
name: PreviewTests
schemes:
PreviewTests:
analyze:
config: Debug
archive:
config: Release
build:
targets:
PreviewTests: all
profile:
config: Release
run:
config: Debug
disableMainThreadChecker: false
test:
config: Debug
disableMainThreadChecker: false
gatherCoverageData: true
coverageTargets:
- ElementX
testPlans:
- path: PreviewTests.xctestplan
defaultPlan: true
targets:
PreviewTests:
type: bundle.unit-test
platform: iOS
buildToolPlugins:
- plugin: PrefireTestsPlugin
package: Prefire
dependencies:
- target: ElementX
- package: SnapshotTesting
info:
path: ../SupportingFiles/Info.plist
settings:
base:
PRODUCT_NAME: PreviewTests
PRODUCT_BUNDLE_IDENTIFIER: ${BASE_BUNDLE_IDENTIFIER}.preview.tests
debug:
release:
sources:
- path: ../SupportingFiles