Skip to content

Commit

Permalink
Release 0.31.3
Browse files Browse the repository at this point in the history
  • Loading branch information
xd009642 committed Nov 29, 2024
2 parents 558003a + bf43ef3 commit 13bad3a
Show file tree
Hide file tree
Showing 17 changed files with 526 additions and 92 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
From 2019 onwards, all notable changes to tarpaulin will be documented in this
file.

## [0.31.3] 2024-11-29
### Added
- The `CARGO_TARPAULIN_CONFIG_FILE` environment variable may be used to set the
path to the configuration file. The command line argument has precedence,
but this environment variable has precedence over `tarpaulin.toml` and `.tarpaulin.toml`.

### Changed
- For `LD_LIBRARY_PATH` get all link paths from build script outputs
- Use `PATH` on windows and `DYLIB_LIBRARY_PATH` for mac instead of `LD_LIBRARY_PATH`
- Add `--stderr` flag to print tarpaulin logs to stderr

## [0.31.2] 2024-08-20
### Changed
- Removed debug printout of function map
Expand Down
89 changes: 44 additions & 45 deletions Cargo.lock

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

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-tarpaulin"
version = "0.31.2"
version = "0.31.3"
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 All @@ -20,13 +20,13 @@ name = "integration"
path = "tests/mod.rs"

[dependencies]
cargo_metadata = "0.18"
cargo_metadata = "0.19"
cfg-if = "1.0.0"
chrono = "0.4"
clap = { version = "4.4.0", features = ["derive"] }
coveralls-api = { version = "0.6.0", optional = true }
fallible-iterator = "0.3.0"
gimli = "0.31.0"
gimli = "0.31.1"
git2 = { version = "0.19", optional = true }
humantime-serde = "1"
indexmap = { version = "~1.8", features = ["serde-1"] }
Expand All @@ -35,9 +35,9 @@ llvm_profparser = { version = "0.7.0", default-features = false }
object = "0.36"
num_cpus = "1.16.0"
proc-macro2 = { version = "1.0", features = ["span-locations"] }
quick-xml = "0.36"
quick-xml = "0.37"
quote = "1.0"
regex = "1.10"
regex = "1.11"
rustc-demangle = "0.1.24"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand All @@ -58,7 +58,7 @@ glob = "0.3.1"
[target.'cfg(all(target_os = "linux", any(target_arch = "x86_64", target_arch = "x86")))'.dependencies]
libc = "0.2.94"
nix = {version = "0.29.0", default-features = false, features = ["sched", "signal", "ptrace", "personality"]}
procfs = "0.16"
procfs = "0.17"

[features]
default = ["coveralls"]
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Options:
--debug Show debug output - this is used for diagnosing issues with tarpaulin
-v, --verbose Show extra output
--dump-traces Log tracing events and save to a json file. Also, enabled when --debug is used
--stderr Print tarpaulin logs to stderr instead - test output will still be printed to stdout
--run-types <TYPE> Type of the coverage run [possible values: Tests, Doctests, Benchmarks, Examples, Lib, Bins, AllTargets]
--benches Test all benches
--doc Test only this library's documentation
Expand Down Expand Up @@ -543,7 +544,8 @@ the seccomp policies for Docker.
### Config file

Tarpaulin has a config file setting where multiple coverage setups can be
encoded in a toml file. This can be provided by an argument or if a
encoded in a toml file. This can be provided by an argument,
by the environment variable `CARGO_TARPAULIN_CONFIG_FILE` or if a
`.tarpaulin.toml` or `tarpaulin.toml` is present in the same directory as
the projects manifest or in the root directory that will be used unless
`--ignore-config` is passed. Below is an example file:
Expand Down
3 changes: 3 additions & 0 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ pub struct LoggingArgs {
/// Log tracing events and save to a json file. Also, enabled when --debug is used
#[arg(long)]
pub dump_traces: bool,
/// Print tarpaulin logs to stderr instead - test output will still be printed to stdout
#[arg(long)]
pub stderr: bool,
}

#[derive(Debug, Clone, Copy, Args)]
Expand Down
Loading

0 comments on commit 13bad3a

Please sign in to comment.