zuke.tools.cypress
@zuke/cypress 1.1.0: @zuke/cypress — typed CypressTasks wrappers for the [Cypress](https://cypress.io) CLI (end-to-end and component testing), for use in Zuke builds.
zuke on PyPI ↗ 8 symbols
Symbols
class CypressInfoSettings(CypressSettings) Settings for cypress info.
class CypressInstallSettings(CypressSettings) Settings for cypress install (the bundled binary).
-
force() -> SelfReinstall even if already present (
--force).
class CypressOpenSettings(CypressTestingSettings) Settings for cypress open (interactive).
class CypressRunSettings(CypressTestingSettings) Settings for cypress run (headless).
-
headed() -> SelfRun in a headed browser (
--headed). -
spec(pattern: str) -> SelfGlob of spec files to run (
--spec). -
record() -> SelfRecord the run to Cypress Cloud (
--record). -
parallel() -> SelfRun in parallel across machines (
--parallel). -
tag(value: str) -> SelfTag the recorded run (
--tag). -
port(value: float) -> SelfOverride the server port (
--port).
class CypressSettings(ToolSettings) Base for all cypress subcommand settings: the binary is cypress.
class CypressTasks Typed task functions for the cypress CLI.
-
static async run(ctx: ServiceContext, configure: Callable[[CypressRunSettings], CypressRunSettings] | None=None) -> ExecResultRun tests in headless mode:
cypress run. -
static async open(ctx: ServiceContext, configure: Callable[[CypressOpenSettings], CypressOpenSettings] | None=None) -> ExecResultOpen the interactive runner:
cypress open. -
static async install(ctx: ServiceContext, configure: Callable[[CypressInstallSettings], CypressInstallSettings] | None=None) -> ExecResultInstall the bundled binary:
cypress install. -
static async verify(ctx: ServiceContext, configure: Callable[[CypressVerifySettings], CypressVerifySettings] | None=None) -> ExecResultVerify the installation:
cypress verify. -
static async info(ctx: ServiceContext, configure: Callable[[CypressInfoSettings], CypressInfoSettings] | None=None) -> ExecResultPrint environment info:
cypress info.
class CypressTestingSettings(CypressSettings) Base for the run/open commands, which share testing-type selection, a browser, a config file, and a project path.
-
e2e() -> SelfRun end-to-end tests (
--e2e). -
component() -> SelfRun component tests (
--component). -
browser(name: str) -> SelfChoose the browser, e.g.
chromeorelectron(--browser). -
config_file(path: str) -> SelfUse an explicit config file (
--config-file). -
project(path: str) -> SelfRun against a project at the given path (
--project).
class CypressVerifySettings(CypressSettings) Settings for cypress verify.