The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15288 
====================================================================== 
Reported By:                Gregor Jasny
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15288
Category:                   CMake
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-12-08 07:45 EST
Last Modified:              2014-12-08 07:45 EST
====================================================================== 
Summary:                    Add XCTest support to Xcode generator
Description: 
Hello,

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 **
}}}
====================================================================== 

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                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to