pub struct TestOptions {
pub path: Option<PathBuf>,
pub node: bool,
pub firefox: bool,
pub geckodriver: Option<PathBuf>,
pub chrome: bool,
pub chromedriver: Option<PathBuf>,
pub safari: bool,
pub safaridriver: Option<PathBuf>,
pub headless: bool,
pub mode: BuildMode,
pub release: bool,
}
Everything required to configure the wasm-pack test
command.
The path to the Rust crate.
Run the tests in Node.js.
Run the tests in Firefox. This machine must have a Firefox installation.
If the geckodriver
WebDriver client is not on the $PATH
, and not
specified with --geckodriver
, then wasm-pack
will download a local
copy.
The path to the geckodriver
WebDriver client for testing in
Firefox. Implies --firefox
.
Run the tests in Chrome. This machine must have a Chrome installation.
If the chromedriver
WebDriver client is not on the $PATH
, and not
specified with --chromedriver
, then wasm-pack
will download a local
copy.
The path to the chromedriver
WebDriver client for testing in
Chrome. Implies --chrome
.
Run the tests in Safari. This machine must have a Safari installation,
and the safaridriver
WebDriver client must either be on the $PATH
or
specified explicitly with the --safaridriver
flag. wasm-pack
cannot
download the safaridriver
WebDriver client for you.
The path to the safaridriver
WebDriver client for testing in
Safari. Implies --safari
.
When running browser tests, run the browser in headless mode without any
UI or windows.
Sets steps to be run. [possible values: no-install, normal]
Build with the release profile.
Returns the "default value" for a type. Read more
Formats the value using the given formatter. Read more
Returns the corresponding clap::App
.
Creates the struct from clap::ArgMatches
. It cannot fail with a parameter generated by clap
by construction. Read more
Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more
Gets the struct from any iterator such as a Vec
of your making. Print the error message and quit the program in case of failure. Read more
Gets the struct from any iterator such as a Vec
of your making. Read more
π¬ This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
π¬ This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
π¬ This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
π¬ This is a nightly-only experimental API. (try_from
)
π¬ This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static