Skip to content

Commit

Permalink
Release 0.31.4
Browse files Browse the repository at this point in the history
  • Loading branch information
xd009642 committed Dec 31, 2024
2 parents 13bad3a + 896a361 commit 5aba88d
Show file tree
Hide file tree
Showing 10 changed files with 355 additions and 58 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ updates:
interval: daily
open-pull-requests-limit: 10
target-branch: develop
ignore:
- dependency-name: libc
versions:
- 0.2.83
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
From 2019 onwards, all notable changes to tarpaulin will be documented in this
file.

## [0.31.4] 2024-12-31
### Added
- Added `--include-files` argument to only display coverage for the mentioned files (#1667)

## [0.31.3] 2024-11-29
### Added
- The `CARGO_TARPAULIN_CONFIG_FILE` environment variable may be used to set the
Expand Down
93 changes: 53 additions & 40 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-tarpaulin"
version = "0.31.3"
version = "0.31.4"
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 Expand Up @@ -44,7 +44,7 @@ serde_json = "1.0"
syn = { version = "2.0", features = ["full"] }
toml = "0.8"
tracing = { version = "0.1", default-features = false }
tracing-subscriber = { version = "0.3.18", default-features = false, features = [
tracing-subscriber = { version = "0.3.19", default-features = false, features = [
"env-filter",
"fmt",
"chrono",
Expand All @@ -53,10 +53,10 @@ tracing-subscriber = { version = "0.3.18", default-features = false, features =
"tracing-log",
] }
walkdir = "2.5.0"
glob = "0.3.1"
glob = "0.3.2"

[target.'cfg(all(target_os = "linux", any(target_arch = "x86_64", target_arch = "x86")))'.dependencies]
libc = "0.2.94"
libc = "0.2.169"
nix = {version = "0.29.0", default-features = false, features = ["sched", "signal", "ptrace", "personality"]}
procfs = "0.17"

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Options:
-p, --packages [<PACKAGE>...] Package id specifications for which package should be build. See cargo help pkgid for more info
-e, --exclude [<PACKAGE>...] Package id specifications to exclude from coverage. See cargo help pkgid for more info
--exclude-files [<FILE>...] Exclude given files from coverage results has * wildcard
--include-files [<FILE>...] Include only given files in coverage results. Can have a * wildcard
-t, --timeout <SECONDS> Integer for the maximum time in seconds without response from test before timeout (default is 1 minute)
--post-test-delay <SECONDS> Delay after test to collect coverage profiles
--follow-exec Follow executed processes capturing coverage information if they're part of your project
Expand Down Expand Up @@ -571,9 +572,9 @@ affects the report output. This is a reserved feature name and any non-reporting
based options chosen will not affect the output of Tarpaulin.

For reference on available keys and their types refer to the CLI help text
at the start of the readme or `src/config/mod.rs` for the concrete types
at the start of the readme or [`src/config/mod.rs`](https://github.com/xd009642/tarpaulin/blob/develop/src/config/mod.rs) for the concrete types
if anything is unclear. For arguments to be passed into the test binary that
follow `--` in Tarpaulin use `args` in the toml file.
follow `--` in Tarpaulin use `args` in the toml file. Find an example in the projects [`tarpaulin.toml](./tarpaulin.toml) file.

Setting the field `config` will not affect the run as it won't be parsed
for additional configuration.
Expand Down
3 changes: 3 additions & 0 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ pub struct ConfigArgs {
/// Exclude given files from coverage results has * wildcard
#[arg(long, value_name = "FILE", num_args = 0..)]
pub exclude_files: Vec<Pattern>,
/// Include only given files in coverage results. Can have a * wildcard
#[arg(long, value_name = "FILE", num_args = 0..)]
pub include_files: Vec<Pattern>,
/// Integer for the maximum time in seconds without response from test before timeout (default is 1 minute).
#[arg(long, short, value_name = "SECONDS")]
pub timeout: Option<u64>,
Expand Down
Loading

0 comments on commit 5aba88d

Please sign in to comment.