Run pytest. See `invocations.pytest.test` for details. This is a simple wrapper around the abovementioned task, which makes a couple minor defaults changes appropriate for this particular test suite, such as: - setting ``capture=no`` instead of ``capture=sys``, as we do a very
(
c: Context,
verbose: bool = False,
color: bool = True,
capture: str = "no",
module: Optional[str] = None,
k: Optional[str] = None,
x: bool = False,
opts: str = "",
pty: bool = True,
)
| 13 | |
| 14 | @task |
| 15 | def test( |
| 16 | c: Context, |
| 17 | verbose: bool = False, |
| 18 | color: bool = True, |
| 19 | capture: str = "no", |
| 20 | module: Optional[str] = None, |
| 21 | k: Optional[str] = None, |
| 22 | x: bool = False, |
| 23 | opts: str = "", |
| 24 | pty: bool = True, |
| 25 | ) -> None: |
| 26 | """ |
| 27 | Run pytest. See `invocations.pytest.test` for details. |
| 28 | |
| 29 | This is a simple wrapper around the abovementioned task, which makes a |
| 30 | couple minor defaults changes appropriate for this particular test suite, |
| 31 | such as: |
| 32 | |
| 33 | - setting ``capture=no`` instead of ``capture=sys``, as we do a very large |
| 34 | amount of subprocess IO testing that even the ``sys`` capture screws up |
| 35 | - setting ``verbose=False`` because we have a large number of tests and |
| 36 | skipping verbose output by default is a ~20% time savings.) |
| 37 | """ |
| 38 | # TODO: update test suite to use c.config.run.in_stream = False globally. |
| 39 | # somehow. |
| 40 | test_( |
| 41 | c, |
| 42 | verbose=verbose, |
| 43 | color=color, |
| 44 | capture=capture, |
| 45 | module=module, |
| 46 | k=k, |
| 47 | x=x, |
| 48 | opts=opts, |
| 49 | pty=pty, |
| 50 | ) |
| 51 | |
| 52 | |
| 53 | # TODO: replace with invocations' once the "call truly local tester" problem is |
no outgoing calls
no test coverage detected
searching dependent graphs…