Skip to content

Commit e7b6409

Browse files
committed
Run test via test plan
This will allow us to inject the Test Analytics environment variables to integrate with the service.
1 parent 3f5c500 commit e7b6409

File tree

4 files changed

+47
-1
lines changed

4 files changed

+47
-1
lines changed

Example/Tests/UnitTests.xctestplan

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"configurations" : [
3+
{
4+
"id" : "0B1AE21B-1942-457C-8E85-D1D9F3281758",
5+
"name" : "Configuration 1",
6+
"options" : {
7+
8+
}
9+
}
10+
],
11+
"defaultOptions" : {
12+
"testTimeoutsEnabled" : true
13+
},
14+
"testTargets" : [
15+
{
16+
"target" : {
17+
"containerPath" : "container:WPMediaPicker.xcodeproj",
18+
"identifier" : "6003F5AD195388D20070C39A",
19+
"name" : "Tests"
20+
}
21+
}
22+
],
23+
"version" : 1
24+
}

Example/WPMediaPicker.xcodeproj/project.pbxproj

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
17475FB71FB46DED00252689 /* SampleCellOverlayView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SampleCellOverlayView.m; sourceTree = "<group>"; };
5050
17F64FDE1E6DDC74006C5A2B /* CustomPreviewViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomPreviewViewController.h; sourceTree = "<group>"; };
5151
17F64FDF1E6DDC74006C5A2B /* CustomPreviewViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomPreviewViewController.m; sourceTree = "<group>"; };
52+
3F3E104528A0BAAE0041FA5A /* UnitTests.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = UnitTests.xctestplan; sourceTree = "<group>"; };
5253
5709B45B57F590232B3E5DA7 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
5354
6003F58A195388D20070C39A /* WPMediaPicker.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WPMediaPicker.app; sourceTree = BUILT_PRODUCTS_DIR; };
5455
6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
@@ -189,6 +190,7 @@
189190
children = (
190191
6003F5BB195388D20070C39A /* WPDateTimeHelpersTests.m */,
191192
6003F5B6195388D20070C39A /* Supporting Files */,
193+
3F3E104528A0BAAE0041FA5A /* UnitTests.xctestplan */,
192194
);
193195
path = Tests;
194196
sourceTree = "<group>";

Example/WPMediaPicker.xcodeproj/xcshareddata/xcschemes/WPMediaPicker-Example.xcscheme

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
33
LastUpgradeVersion = "1240"
4-
version = "1.3">
4+
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
@@ -36,6 +36,12 @@
3636
ReferencedContainer = "container:WPMediaPicker.xcodeproj">
3737
</BuildableReference>
3838
</MacroExpansion>
39+
<TestPlans>
40+
<TestPlanReference
41+
reference = "container:Tests/UnitTests.xctestplan"
42+
default = "YES">
43+
</TestPlanReference>
44+
</TestPlans>
3945
<Testables>
4046
<TestableReference
4147
skipped = "NO">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"pins" : [
3+
{
4+
"identity" : "test-collector-swift",
5+
"kind" : "remoteSourceControl",
6+
"location" : "https://github.com/buildkite/test-collector-swift",
7+
"state" : {
8+
"revision" : "77c7f492f5c1c9ca159f73d18f56bbd1186390b0",
9+
"version" : "0.3.0"
10+
}
11+
}
12+
],
13+
"version" : 2
14+
}

0 commit comments

Comments
 (0)