Run the integration test suite. May be slow!
(
c: Context, opts: Optional[str] = None, pty: bool = True
)
| 54 | # solved (see other TODOs). For now this is just a copy/paste/modify. |
| 55 | @task(help=test.help) # type: ignore |
| 56 | def 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…