-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
OS X Server 10.10.5 Yosemite
Jenkins 1.630
Xcode Plugin 1.4.8
Unit Test build fails since Xcode 7 update: it seems related to a date format change. Now, the date have the floating milliseconds part appended to the second value, and there is not more timezone value at the end. See the difference below:
Xcode 6.4
[FooBar] $ /usr/bin/xcodebuild -version Xcode 6.4 Build version 6E35b ... Test Suite 'All tests' started at 2015-08-31 19:10:25 +0000 Test Suite 'FooBarTests.xctest' started at 2015-08-31 19:10:25 +0000 Test Suite 'FooBarAccessManagerTests' started at 2015-08-31 19:10:25 +0000 Test Case '-[FooBarAccessManagerTests testActionInitialization]' started.
Xcode 7.0
[FooBar] $ /usr/bin/xcodebuild -version Xcode 7.0 Build version 7A220 ... Test Suite 'All tests' started at 2015-09-21 14:54:54.990 FATAL: Unparseable date: "2015-09-21 14:54:54.990"
For Xcode 7, we need to use the "yyyy-MM-dd HH:mm:ss.SSS" SimpleDateFormat instead of "yyyy-MM-dd HH:mm:ss z" one for the au.com.rayh.XCodeBuildOutputParser.dateFormat static property. Would it be possible to add a multiple date format parser to the plugin, to support both version of Xcode?