pub struct LocalProviderConfig {
pub working_dir: Option<PathBuf>,
pub env: HashMap<String, String>,
pub shell: String,
}Expand description
Configuration for the local process provider.
Tests run as child processes of offload on the local machine. This is the simplest provider and requires no external dependencies.
§Example
[provider]
type = "local"
working_dir = "/path/to/project"
shell = "/bin/bash"
[provider.env]
PYTHONPATH = "/app"
DEBUG = "1"Fields§
§working_dir: Option<PathBuf>Working directory for spawned processes.
If not specified, uses the current working directory.
env: HashMap<String, String>Environment variables to set for all test processes.
These are merged with (and override) the current environment.
shell: StringShell to use for running commands.
Commands are executed via {shell} -c "{command}".
Default: /bin/sh
Trait Implementations§
Source§impl Clone for LocalProviderConfig
impl Clone for LocalProviderConfig
Source§fn clone(&self) -> LocalProviderConfig
fn clone(&self) -> LocalProviderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalProviderConfig
impl Debug for LocalProviderConfig
Source§impl Default for LocalProviderConfig
impl Default for LocalProviderConfig
Source§fn default() -> LocalProviderConfig
fn default() -> LocalProviderConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LocalProviderConfig
impl<'de> Deserialize<'de> for LocalProviderConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LocalProviderConfig
impl RefUnwindSafe for LocalProviderConfig
impl Send for LocalProviderConfig
impl Sync for LocalProviderConfig
impl Unpin for LocalProviderConfig
impl UnsafeUnpin for LocalProviderConfig
impl UnwindSafe for LocalProviderConfig
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