pub struct Test {
Show 21 fields pub common: CommonOptions, pub packages: Vec<String>, pub workspace: bool, pub exclude: Vec<String>, pub all: bool, pub lib: bool, pub bin: Vec<String>, pub bins: bool, pub example: Vec<String>, pub examples: bool, pub test: Vec<String>, pub tests: bool, pub bench: Vec<String>, pub benches: bool, pub all_targets: bool, pub doc: bool, pub no_run: bool, pub no_fail_fast: bool, pub future_incompat_report: bool, pub test_name: Option<String>, pub args: Vec<String>,
}
Expand description

Execute all unit and integration tests and build examples of a local package

Fields

common: CommonOptionspackages: Vec<String>

Package to build (see cargo help pkgid)

workspace: bool

Test all packages in the workspace

exclude: Vec<String>

Exclude packages from the build

all: bool

Alias for workspace (deprecated)

lib: bool

Test only this package’s library

bin: Vec<String>

Test only the specified binary

bins: bool

Test all binaries

example: Vec<String>

Test only the specified example

examples: bool

Test all examples

test: Vec<String>

Test only the specified test target

tests: bool

Test all tests

bench: Vec<String>

Test only the specified bench target

benches: bool

Test all benches

all_targets: bool

Test all targets

doc: bool

Test only this library’s documentation

no_run: bool

Compile, but don’t run tests

no_fail_fast: bool

Run all tests regardless of failure

future_incompat_report: bool

Outputs a future incompatibility report at the end of the build (unstable)

test_name: Option<String>

If specified, only run tests containing this string in their names

args: Vec<String>

Arguments for the test binary

Trait Implementations

Append to Command so it can instantiate Self. Read more

Append to Command so it can update self. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

👎 Deprecated since 3.1.0:

Replaced with `CommandFactory::command

Deprecated, replaced with CommandFactory::command

👎 Deprecated since 3.1.0:

Replaced with `CommandFactory::command_for_update

Deprecated, replaced with CommandFactory::command_for_update

Build an Command that can instantiate Self. Read more

Build an Command that can update self. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Converts to this type from the input type.

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more

Assign values from ArgMatches to self.

Parse from std::env::args_os(), exit on error

Parse from std::env::args_os(), return Err on error.

Parse from iterator, exit on error

Parse from iterator, return Err on error.

Update from iterator, exit on error

Update from iterator, return Err on error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.