Motivation
Apple Developer: About Unit TestingLogic Tests
- Apple Developer: Setting Up Unit-Testing in a Project
- Download convert OCUnit command line output to JUnit XML: OCUnit2JUnit and put it in your project
- Setup Freestyle project in Jenkins
- Add Execute shell step:
- chmod +x ./pathtoscript/ocunit2junit.rb
- xcodebuild -target
myTarget -configuration ./pathtoscript/ocunit2junit.rbmyConfig -sdk iphonesimulator clean build | - Add post build action Publish JUnit Test Results with location:
- test-reports/*.xml
Application Tests
- Apple Developer: Setting Up Unit-Testing in a Project
- Download the patched RunPlatformUnitTests script and put in your project
- Open the Build Phases - Run Script setting and change script path to "${PROJECT_DIR}/pathtoscript/RunPlatformUnitTests"
- Download convert OCUnit command line output to JUnit XML: OCUnit2JUnit and put it in your project
- Setup Freestyle project in Jenkins
- Add Execute shell step:
- chmod +x ./pathtoscript/ocunit2junit.rb
- xcodebuild -target
myTarget -configuration ./pathtoscript/ocunit2junit.rbmyConfig -sdk iphonesimulator TEST_AFTER_BUILD=YES clean build | - Add post build action Publish JUnit Test Results with location:
- test-reports/*.xml
UI Automation Tests
Upcoming...
Comments
Post a Comment