Skip to content

Commit 3184d09

Browse files
author
Tyler Mann
committed
Updating build_scripts docs
1 parent 9653762 commit 3184d09

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,21 @@ This plugin does not actually generate coverage data for you, since there are va
2626
(See more info at https://developer.apple.com/library/ios/qa/qa1514/_index.html)
2727

2828
#####2. Setup the export_build_vars.py script in build phases
29+
30+
This script is used to export any necessary environment variables from your latest build. The main reason this is needed is that many of the env variables at run-time are completely different in unrelated to your most recent build. They are also usually relative paths instead of absolute like these build variables.
31+
2932
![Export build vars](https://github.com/dropbox/XCoverage/raw/master/docs/export-build-vars.png)
3033

3134
#####3. Add pre-action script to the test section of your scheme
35+
36+
This script will clear any previous .gcda files from your target_object_dir, which helps ensure that this test run will be isolated in the coverage data.
37+
3238
![Pre-action](https://github.com/dropbox/XCoverage/raw/master/docs/pre-actions-setup.png)
3339

3440
#####4. Add post-action script to the test section of your scheme
41+
42+
This script will run gcov on all of your gcda files generated by your tests running in the app, generating .gcov files to be parsed by the plugin.
43+
3544
![Post-action](https://github.com/dropbox/XCoverage/raw/master/docs/post-actions-setup.png)
3645

3746

0 commit comments

Comments
 (0)