Commit d2719a4e authored by Mholloway's avatar Mholloway
Browse files

[Swift] Add make recipe for generating code coverage

Bug: T288742
Change-Id: Iad413a7213d9deb0a0aa63352847f8835509ef86
parent fd515364
test:
docker run --rm -it -v `pwd`:`pwd` -w `pwd` swift swift test
coverage:
docker run --rm -it -v `pwd`:`pwd` -w `pwd` swift \
swift test --enable-code-coverage && echo "\n" && \
llvm-cov report .build/x86_64-unknown-linux-gnu/debug/WikimediaMetricsPlatformPackageTests.xctest \
-instr-profile=.build/x86_64-unknown-linux-gnu/debug/codecov/default.profdata \
-ignore-filename-regex=".build|Tests" \
-use-color
# WikimediaMetricsPlatform
Metrics client library for the official Wikipedia app for iOS. See the [Metrics Platform](https://wikitech.wikimedia.org/wiki/Metrics_Platform) project page on Wikitech for details.
The library itself is platform-agnostic, and is built and tested exclusively with free-licensed code.
Metrics client library for the official Wikipedia app for iOS, built in pure Swift to keep it FLOSS.
## Testing
Executing `make test` will run the tests in a temporary Docker container, after first downloading the `swift` image if needed.
\ No newline at end of file
Run tests with `make test` and produce a coverage report with `make coverage`.
These commands will run in a temporary Docker container based on the official `swift` image.
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment