in ci.py [0:0]
def integration_test() -> int:
# TODO: Plumb up to a coverage system - e.g. codecov (Issue #6)
print("Running `ptr` integration tests (aka run itself)", file=sys.stderr)
stats_file = Path(gettempdir()) / "ptr_ci_stats"
ci_cmd = [
"python",
"ptr.py",
"-d",
"--print-cov",
"--run-disabled",
"--error-on-warnings",
"--stats-file",
str(stats_file),
]
if "VIRTUAL_ENV" in environ:
ci_cmd.extend(["--venv", environ["VIRTUAL_ENV"]])
cp = run(ci_cmd, check=True)
return cp.returncode + check_ptr_stats_json(stats_file)