lemon-cpu-34312
02/06/2023, 2:57 PM./pants test path/to:target
9:56:22.55 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Create base global Pytest coverage report.' failed with exit code 1.
stdout:
Can't read '__global_coverage__/pyproject.toml' without TOML support. Install with [toml] extra
lemon-cpu-34312
02/06/2023, 2:59 PMpants.toml
to no avail:
[pytest]
version = "pytest==7.2.1"
lockfile = "3rdparty/pytest_lockfile.txt"
args = ["-vv", '-s']
extra_requirements.add = [
"toml",
"pytest-cov",
]
[coverage-py]
version = "coverage==7.1.0"
global_report = true
report = ["xml", "html", "json", "console"]
output_dir="dist/coverage_reports/python"
lockfile = "3rdparty/coverage-py_lockfile.txt"
extra_requirements.add = ["toml"]
lemon-cpu-34312
02/06/2023, 2:59 PMglobal_report = false
makes the error disappearenough-analyst-54434
02/06/2023, 3:00 PMlemon-cpu-34312
02/06/2023, 3:00 PMlemon-cpu-34312
02/06/2023, 3:00 PMenough-analyst-54434
02/06/2023, 3:01 PMrefined-addition-53644
02/06/2023, 3:02 PMenough-analyst-54434
02/06/2023, 3:02 PMrefined-addition-53644
02/06/2023, 3:03 PM[coverage-py]
version = "coverage[toml]~=7.0.5"
global_report = false
lemon-cpu-34312
02/06/2023, 3:04 PMBut the proximal issue / solution is right there in the error message, ask for the toml extraI believe I’m doing that in the
pants.toml
snippet I pasted though, via the extra_requirements.add
lines? Unless you mean via python extras syntax, so like version = "coverage[toml]"
?enough-analyst-54434
02/06/2023, 3:04 PM