Skip to content

Commit

Permalink
Releasing 0.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
xd009642 committed Jul 18, 2018
2 parents fb57098 + 54a523e commit e82df6f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-tarpaulin"
version = "0.6.4"
version = "0.6.5"
authors = ["Daniel McKenna <[email protected]>"]
description = "Cargo-Tarpaulin is a tool to determine code coverage achieved via tests"
repository = "https://github.com/xd009642/tarpaulin"
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ pub fn report_coverage(config: &Config, result: &TraceMap) {
uncovered_lines.into_iter()
.fold((vec![], vec![]), accumulate_lines);
let (groups, _) = accumulate_lines((groups, last_group), u64::max_value());
println!("{}: {}", path.display(), groups.join(", "));
if ! groups.is_empty() {
println!("{}: {}", path.display(), groups.join(", "));
}
}
println!();
}
Expand Down
5 changes: 3 additions & 2 deletions src/report/cobertura.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ fn write_class<T:Write>(writer: &mut Writer<T>,
/// Input only tracer data from a single source folder
fn write_package<T:Write>(mut writer: &mut Writer<T>,
package: &Path,
manifest_path: &Path,
package_name: &str,
coverage: &TraceMap) -> Result<usize> {
let covered = coverage.covered_in_path(package);
Expand All @@ -89,7 +90,7 @@ fn write_package<T:Write>(mut writer: &mut Writer<T>,

for file in &coverage.files() {
if file.parent() == Some(package) {
write_class(&mut writer, package, file, coverage)?;
write_class(&mut writer, manifest_path, file, coverage)?;
}
}

Expand Down Expand Up @@ -133,7 +134,7 @@ pub fn export(coverage_data: &TraceMap, config: &Config) {
_ => manifest_path,
};
let package_name = package_name.to_str().unwrap_or_default();
let _ = write_package(&mut writer, &parent, package_name, &coverage_data);
let _ = write_package(&mut writer, &parent, &manifest_path, package_name, &coverage_data);
}
}

Expand Down
2 changes: 1 addition & 1 deletion travis-install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
curl -sL https://github.com/xd009642/tarpaulin/releases/download/0.6.4/cargo-tarpaulin-0.6.4-travis.tar.gz | tar xvz -C $HOME/.cargo/bin
curl -sL https://github.com/xd009642/tarpaulin/releases/download/0.6.5/cargo-tarpaulin-0.6.5-travis.tar.gz | tar xvz -C $HOME/.cargo/bin
echo "WARNING This method is no longer recommended. Use docker or crates.io to install tarpaulin"

0 comments on commit e82df6f

Please sign in to comment.