Run tests in worktree against its source directory.
The environment is fixed: PYTHONPATH (the architecture’s source_dir), a fixed PATH, PYTHONDONTWRITEBYTECODE, PYTHONHASHSEED and PYTEST_DISABLE_PLUGIN_AUTOLOAD (no plugin of the environment is loaded).
tuple[Tally, str]: The counts and the combined output, which depends only on the run: the path of worktree is shown as <worktree> and the duration in pytest’s summary as <time>. With no tests, returns Tally(0, 0, 0) and "no tests declared\n".