Skip to main content

Module env

Module env 

Source
Expand description

What a suite runs against. Core is the part every environment has: the settings, the address of the app, the work directory, an HTTP client and a chromedriver shared by the tests. A test crate wraps it in its own environment, which adds whatever its app needs (a backend, a database) and implements Env.

Structs§

ChromeConfig
How the Chrome sessions are set up, apart from what every app gets.
Core
The part of the environment every suite has. An Env dereferences to it.
Settings
Settings from the E2E_* environment variables.

Constants§

POLL
WAIT
Time limit of element queries and of the Ctx::wait_* helpers.

Traits§

Env
The environment of one suite: started once, before the first test that needs it, shared by all the tests of the suite and shut down after the last one.

Functions§

free_port
A port nothing listens on at the moment, for a server the environment starts.