View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015288CMakeCMakepublic2014-12-08 07:452016-02-01 09:10
ReporterGregor Jasny 
Assigned ToGregor Jasny 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionCMake 3.3Fixed in VersionCMake 3.3 
Summary0015288: Add XCTest support to Xcode generator
DescriptionHello,

this prove of concept patch adds support to generate xctest bundles for Xcode.

Missing:
* Proper error handling
* automatic declaration of dependency from xctest -> app
* TEST_HOST variable review

Thanks,
Gregor
Steps To Reproduce{{{
cd Tests/CocoaExample
../../../bin/cmake -G Xcode ..
open Project.xcodeproj # to generate Schema Files
xcodebuild -project Project.xcodeproj -scheme CocoaExample -destination 'platform=OS X,arch=x86_64' build
xcodebuild -project Project.xcodeproj -scheme CocoaExample -destination 'platform=OS X,arch=x86_64' test
}}}

{{{
Test Suite 'All tests' started at 2014-12-08 12:43:00 +0000
Test Suite 'CocoaExampleTest.xctest' started at 2014-12-08 12:43:00 +0000
Test Suite 'CocoaExampleTests' started at 2014-12-08 12:43:00 +0000
Test Case '-[CocoaExampleTests testExample]' started.
Test Case '-[CocoaExampleTests testExample]' passed (0.000 seconds).
Test Case '-[CocoaExampleTests testPerformanceExample]' started.
/Users/jasny/src/cmake/Tests/CocoaExample/CocoaExampleTests/CocoaExampleTests.m:35: Test Case '-[CocoaExampleTests testPerformanceExample]' measured [Time, seconds] average: 0.000, relative standard deviation: 90.500%, values: [0.000003, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001, 0.000001], performanceMetricID:com.apple.XCTPerformanceMetric_WallClockTime, baselineName: "", baselineAverage: , maxPercentRegression: 10.000%, maxPercentRelativeStandardDeviation: 10.000%, maxRegression: 0.100, maxStandardDeviation: 0.100
Test Case '-[CocoaExampleTests testPerformanceExample]' passed (0.293 seconds).
Test Suite 'CocoaExampleTests' passed at 2014-12-08 12:43:00 +0000.
     Executed 2 tests, with 0 failures (0 unexpected) in 0.293 (0.293) seconds
Test Suite 'CocoaExampleTest.xctest' passed at 2014-12-08 12:43:00 +0000.
     Executed 2 tests, with 0 failures (0 unexpected) in 0.293 (0.294) seconds
Test Suite 'All tests' passed at 2014-12-08 12:43:00 +0000.
     Executed 2 tests, with 0 failures (0 unexpected) in 0.293 (0.295) seconds
** TEST SUCCEEDED **
}}}
TagsNo tags attached.
Attached Filespatch file icon 0002-POC-for-adding-XCTest-targets.patch [^] (4,261 bytes) 2014-12-08 07:45 [Show Content]
patch file icon 0001-Add-Cocoa-App.patch [^] (57,174 bytes) 2014-12-08 07:45 [Show Content]
patch file icon 0003-Add-XCTest-Example.patch [^] (2,631 bytes) 2014-12-08 07:45 [Show Content]

 Relationships

  Notes
(0038287)
Brad King (manager)
2015-03-24 13:35

Gregor Jasny's implementation has been merged to 'master' here:

 Merge topic 'xcode-xctest'
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a37937f7 [^]
(0040415)
Robert Maynard (manager)
2016-02-01 09:10

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-12-08 07:45 Gregor Jasny New Issue
2014-12-08 07:45 Gregor Jasny File Added: 0002-POC-for-adding-XCTest-targets.patch
2014-12-08 07:45 Gregor Jasny File Added: 0001-Add-Cocoa-App.patch
2014-12-08 07:45 Gregor Jasny File Added: 0003-Add-XCTest-Example.patch
2015-03-24 13:35 Brad King Note Added: 0038287
2015-03-24 13:35 Brad King Status new => resolved
2015-03-24 13:35 Brad King Resolution open => fixed
2015-03-24 13:35 Brad King Fixed in Version => CMake 3.3
2015-03-24 13:35 Brad King Target Version => CMake 3.3
2015-03-24 13:36 Brad King Assigned To => Gregor Jasny
2016-02-01 09:10 Robert Maynard Note Added: 0040415
2016-02-01 09:10 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team