Skip to content

Commit

Permalink
Add all tests in a scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
yalishanda42 committed May 30, 2023
1 parent a349639 commit 73a7210
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 15 deletions.
32 changes: 31 additions & 1 deletion BDZDelays.xcodeproj/xcshareddata/xcschemes/BDZDelays.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForTesting = "NO"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
Expand All @@ -28,6 +28,36 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ROVRTests"
BuildableName = "ROVRTests"
BlueprintName = "ROVRTests"
ReferencedContainer = "container:BDZDelays/bdz-delays">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "SearchStationDomainTests"
BuildableName = "SearchStationDomainTests"
BlueprintName = "SearchStationDomainTests"
ReferencedContainer = "container:BDZDelays/bdz-delays">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "StationDomainTests"
BuildableName = "StationDomainTests"
BlueprintName = "StationDomainTests"
ReferencedContainer = "container:BDZDelays/bdz-delays">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand Down
20 changes: 6 additions & 14 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,12 @@ platform :ios do

desc "Run all tests"
lane :tests do
sh('rm -rf "$(pwd)/test_output"')
for scheme in [
"StationDomain",
"SearchStationDomain",
"ROVR",
] do
run_tests(
package_path: "BDZDelays/bdz-delays",
scheme: scheme,
device: "iPhone 13 Pro Max",
result_bundle: true,
output_directory: Dir.pwd + "/test_output" # https://github.com/fastlane/fastlane/issues/20012
)
end
run_tests(
scheme: "BDZDelays",
device: "iPhone 13 Pro Max",
result_bundle: true,
skip_build: true
)
end
end

Expand Down

0 comments on commit 73a7210

Please sign in to comment.