Skip to content

Commit 6f898f6

Browse files
jturner314LukeMathWalker
authored andcommitted
Improve coverage testing (#46)
* Add -f option when installing tarpaulin in CI The `tarpaulin` README says "Because of the use of nightly proc-macro features you'll need to reinstall tarpaulin each time unless you're keeping to a specific nightly version. If you are keeping to a specific nightly you can remove the `-f` flag in the example travis file." We haven't pinned a nightly version, so we should use the `-f` option. * Add doc tests to coverage testing
1 parent d0f122d commit 6f898f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: .travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ matrix:
1616
- rust: nightly
1717
before_cache: |
1818
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
19-
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
19+
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin -f
2020
fi
2121
before_script:
2222
- rustup component add rustfmt
@@ -30,6 +30,6 @@ script: |
3030
cargo test
3131
after_success: |
3232
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
33-
cargo tarpaulin --out Xml
33+
cargo tarpaulin --run-types Tests Doctests --out Xml
3434
bash <(curl -s https://codecov.io/bash)
3535
fi

0 commit comments

Comments
 (0)