Run pytest inline or in a subprocess, depending on the command line option "--runpytest" and return a :py:class:`~pytest.RunResult`.
(
self, *args: Union[str, "os.PathLike[str]"], **kwargs: Any
)
| 1167 | return res |
| 1168 | |
| 1169 | def runpytest( |
| 1170 | self, *args: Union[str, "os.PathLike[str]"], **kwargs: Any |
| 1171 | ) -> RunResult: |
| 1172 | """Run pytest inline or in a subprocess, depending on the command line |
| 1173 | option "--runpytest" and return a :py:class:`~pytest.RunResult`.""" |
| 1174 | new_args = self._ensure_basetemp(args) |
| 1175 | if self._method == "inprocess": |
| 1176 | return self.runpytest_inprocess(*new_args, **kwargs) |
| 1177 | elif self._method == "subprocess": |
| 1178 | return self.runpytest_subprocess(*new_args, **kwargs) |
| 1179 | raise RuntimeError(f"Unrecognized runpytest option: {self._method}") |
| 1180 | |
| 1181 | def _ensure_basetemp( |
| 1182 | self, args: Sequence[Union[str, "os.PathLike[str]"]] |
no test coverage detected