Crates.io | tarp |
lib.rs | tarp |
version | 0.10.1 |
source | src |
created_at | 2020-01-13 17:47:34.282929 |
updated_at | 2020-01-14 08:38:15.698695 |
description | Tarp is a code coverage tool |
homepage | |
repository | https://github.com/apibillme/tarp |
max_upload_size | |
id | 198138 |
size | 258,245 |
Provide a Rust Code Coverage tool that works with Snap and Travis CI
Tarpaulin now allows you to ignore modules or functions using config attributes. Below is an example of ignoring the main function in a project:
#[cfg_attr(tarpaulin, skip)]
fn main() {
println!("I won't be included in results");
}
language: rust
sudo: required
dist: bionic
addons:
apt:
packages:
- libssl-dev
cache: cargo
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
sudo apt update
sudo apt install snapd
curl https://apibill.me/tarp/tarp_0.10.0_amd64.snap --output tarp_0.10.0_amd64.snap
sudo snap install tarp_0.10.0_amd64.snap --classic --dangerous
sudo ln -s /home/travis/.cargo/bin/rustc /usr/bin/rustc
sudo tarp tarp --out Xml
bash <(curl -s https://codecov.io/bash)
fi