pub struct Settings {
pub workspace_root: PathBuf,
pub target_dir: PathBuf,
pub release: bool,
pub wasm_opt: bool,
pub skip_build: bool,
pub headless: bool,
pub chromedriver: Option<PathBuf>,
pub webdriver: Option<String>,
}Expand description
Settings from the E2E_* environment variables.
Fields§
§workspace_root: PathBuf§target_dir: PathBuf§release: boolE2E_RELEASE: builds in release mode.
wasm_opt: boolE2E_WASM_OPT: runs wasm-opt on the apps, as a shipped build has it. Off by default:
it takes long and changes nothing a functional test looks at.
skip_build: boolE2E_SKIP_BUILD: uses the last build.
headless: boolE2E_HEADLESS=0 shows the browser window.
chromedriver: Option<PathBuf>E2E_CHROMEDRIVER: chromedriver to use instead of downloading it.
webdriver: Option<String>E2E_WEBDRIVER: URL of a running WebDriver (http://localhost:9515) to open the
sessions with, instead of a chromedriver started by the harness.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Settings
impl Freeze for Settings
impl Move for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more