MCPcopy Index your code
hub / github.com/pyinvoke/invoke / integration

Function integration

tasks.py:56–71  ·  view source on GitHub ↗

Run the integration test suite. May be slow!

(
    c: Context, opts: Optional[str] = None, pty: bool = True
)

Source from the content-addressed store, hash-verified

54# solved (see other TODOs). For now this is just a copy/paste/modify.
55@task(help=test.help) # type: ignore
56def integration(
57 c: Context, opts: Optional[str] = None, pty: bool = True
58) -> None:
59 """
60 Run the integration test suite. May be slow!
61 """
62 # Abort if no default shell on this system - implies some unusual dev
63 # environment. Certain entirely-standalone tests will fail w/o it, even if
64 # tests honoring config overrides (like the unit-test suite) don't.
65 shell = c.config.global_defaults()["run"]["shell"]
66 if not c.run("which {}".format(shell), hide=True, warn=True):
67 err = "No {} on this system - cannot run integration tests! Try a container?" # noqa
68 raise Exit(err.format(shell))
69 opts = opts or ""
70 opts += " integration/"
71 test(c, opts=opts, pty=pty)
72
73
74@task

Callers

nothing calls this directly

Calls 4

ExitClass · 0.90
testFunction · 0.70
global_defaultsMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…