Skip to content

Commit ef873ff

Browse files
authored
Add xcov instructions in README (#2494)
1 parent ee10c4e commit ef873ff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ This command will get the right `clang-format` version:
100100

101101
Select a scheme and press Command-u to build a component and run its unit tests.
102102

103+
#### Viewing Code Coverage
104+
105+
First, make sure that [xcov](https://github.com/nakiostudio/xcov) is installed with `gem install xcov`.
106+
107+
After running the `AllUnitTests_iOS` scheme in Xcode, execute
108+
`xcov --workspace Firebase.xcworkspace --scheme AllUnitTests_iOS --output_directory xcov_output`
109+
at Example/ in the terminal. This will aggregate the coverage, and you can run `open xcov_output/index.html` to see the results.
110+
103111
### Running Sample Apps
104112
In order to run the sample apps and integration tests, you'll need valid
105113
`GoogleService-Info.plist` files for those samples. The Firebase Xcode project contains dummy plist

0 commit comments

Comments
 (0)