Struct cargo_tarpaulin::config::Config
[−]
[src]
pub struct Config { pub manifest: PathBuf, pub run_ignored: bool, pub ignore_tests: bool, pub skip_clean: bool, pub verbose: bool, pub no_count: bool, pub line_coverage: bool, pub branch_coverage: bool, pub generate: Vec<OutputFile>, pub coveralls: Option<String>, pub ci_tool: Option<CiService>, pub forward_signals: bool, pub features: Vec<String>, pub all: bool, pub packages: Vec<String>, pub exclude: Vec<String>, pub varargs: Vec<String>, }
Specifies the current configuration tarpaulin is using.
Fields
manifest: PathBuf
Path to the projects cargo manifest
run_ignored: bool
Flag to also run tests with the ignored attribute
ignore_tests: bool
Flag to ignore test functions in coverage statistics
skip_clean: bool
Flag to skip the clean step when preparing the target project
verbose: bool
Verbose flag for printing information to the user
no_count: bool
Flag to disable counting line hits in line coverage mode
line_coverage: bool
Flag specifying to run line coverage (default)
branch_coverage: bool
Flag specifying to run branch coverage
generate: Vec<OutputFile>
Output files to generate
coveralls: Option<String>
Key relating to coveralls service or repo
ci_tool: Option<CiService>
Enum representing CI tool used.
forward_signals: bool
Forward unexpected signals back to the tracee. Used for tests which rely on signals to work.
features: Vec<String>
Features to include in the target project build
all: bool
Build all packages in the workspace
packages: Vec<String>
Packages to include when building the target project
exclude: Vec<String>
Packages to exclude from testing
varargs: Vec<String>
Varargs to be forwarded to the test executables.
Methods
impl Config
[src]
fn from_args(args: &ArgMatches) -> Config
[src]
Create configuration from clap ArgMatches.
fn is_coveralls(&self) -> bool
[src]
Determine whether to send data to coveralls