1
1
These scripts provide a simple way to generate HTML reports of the code coverage
2
- of your Xcode 4.5 project.
3
- For a detailed blog post, see http://qualitycoding.org/xcode-code-coverage/
2
+ of your Xcode project.
3
+ For a detailed blog post, see http://qualitycoding.org/xcode-code-coverage/
4
+ For additional steps needed to get code coverage in iOS 7, see http://qualitycoding.org/ios-7-code-coverage/
4
5
5
6
6
7
Installation
@@ -9,7 +10,7 @@ Installation
9
10
1 . Fork this repository; you're probably going to want to make your own
10
11
modifications.
11
12
2 . Place the XcodeCoverage folder in the same folder as your Xcode project.
12
- 3 . [ Download lcov-1.10] ( http://downloads.sourceforge.net/ltp/lcov-1.10.tar.gz ) .
13
+ 3 . [ Dowload lcov-1.10] ( http://downloads.sourceforge.net/ltp/lcov-1.10.tar.gz ) .
13
14
Place the lcov-1.10 folder inside the XcodeCoverage folder.
14
15
4 . Get Xcode's coverage instrumentation by going to Xcode Preferences, into Downloads, and installing Command Line Tools.
15
16
5 . In your Xcode project, enable these two build settings at the project level
@@ -27,14 +28,10 @@ Execution
27
28
=========
28
29
29
30
1 . Run your unit tests
30
- 2 . In Terminal, cd to your project's XcodeCoverage folder, then
31
-
32
- $ ./getcov
31
+ 2 . In Terminal, execute ` getcov ` your project's XcodeCoverage folder.
33
32
34
33
If you make changes to your test code without changing the production code and
35
- want a clean slate, use the `` cleancov `` script:
36
-
37
- $ ./cleancov
34
+ want a clean slate, use the `` cleancov `` script.
38
35
39
36
If you make changes to your production code, you should clear out all build
40
37
artifacts before measuring code coverage again. "Clean Build Folder" by holding
@@ -49,14 +46,3 @@ There are two places you may want to modify:
49
46
1 . In envcov.sh, `` LCOV_INFO `` determines the name shown in the report.
50
47
2 . In getcov, edit `` exclude_data() `` to specify which files to exclude, for
51
48
example, third-party libraries.
52
-
53
-
54
- More resources
55
- ==============
56
-
57
- * [ Sources] ( https://github.com/jonreid/XcodeCoverage )
58
- * Testing tools: [ OCHamcrest] ( https://github.com/hamcrest/OCHamcrest ) ,
59
- [ OCMockito] ( https://github.com/jonreid/OCMockito ) ,
60
- [ JMRTestTools] ( https://github.com/jonreid/JMRTestTools )
61
- * [ Quality Coding] ( http://qualitycoding.org/ ) blog - Tools, tips & techniques
62
- for _ building quality in_ to iOS development
0 commit comments