Skip to content

Commit 314363b

Browse files
committed
Document getcov arguments
1 parent fa1393d commit 314363b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ Execution
5050
1. Run your unit tests.
5151
2. In Terminal, execute `getcov` in your project's XcodeCoverage folder.
5252

53+
`getcov` has the following command-line options:
54+
55+
* `--show` or `-s`: Show HTML report.
56+
* `--xml` or `-x`: Generate Cobertura XML.
57+
* `-o output_dir`: Specify output directory.
58+
* `-i info_file`: Specify name of generated lcov info file.
59+
* `-v`: Enable verbose output.
60+
* `-h` or `--help`: Show usage.
61+
5362
If you make changes to your test code without changing the production code and want a clean slate, use the `cleancov` script.
5463

5564
If you make changes to your production code, you should clear out all build artifacts before measuring code coverage again. "Clean Build Folder" by holding down the Option key in Xcode's "Product" menu, or by using the ⌥⇧⌘K key combination.
@@ -59,7 +68,7 @@ If you make changes to your production code, you should clear out all build arti
5968
* Edit Xcode scheme -> Test -> Post-actions
6069
* Set "Shell" to: `/bin/bash`
6170
* Set "Provide build settings from" to your main target
62-
* Set script to: `source ${SRCROOT}/XcodeCoverage/run_code_coverage_post.sh`
71+
* Set script to: `source ${SRCROOT}/XcodeCoverage/run_code_coverage_post.sh` for standard installation. For CocoaPod installation, use `source ${SRCROOT}/Pods/XcodeCoverage/run_code_coverage_post.sh`
6372

6473

6574
Modification

0 commit comments

Comments
 (0)