brought back behave-parallel on coverage
This commit is contained in:
+5
-5
@@ -527,7 +527,7 @@ def coverage_report(session: nox.Session):
|
||||
Both are single-line, CI-parseable summary strings.
|
||||
"""
|
||||
session.install("-e", ".[tests]")
|
||||
# _install_behave_parallel(session)
|
||||
_install_behave_parallel(session)
|
||||
|
||||
os.makedirs("build", exist_ok=True)
|
||||
|
||||
@@ -556,17 +556,17 @@ def coverage_report(session: nox.Session):
|
||||
)
|
||||
|
||||
# Force sequential mode so slipcover wraps the entire process.
|
||||
# session.env["BEHAVE_PARALLEL_COVERAGE"] = "1"
|
||||
session.env["BEHAVE_PARALLEL_COVERAGE"] = "1"
|
||||
|
||||
# Clean up any existing slipcover data
|
||||
for path in Path("build").glob(".slipcover.*.json"):
|
||||
path.unlink()
|
||||
|
||||
# Build behave-parallel args (sequential for coverage).
|
||||
# behave_cmd = session.bin + "/behave-parallel"
|
||||
behave_cmd = session.bin + "/behave-parallel"
|
||||
if session.posargs and session.posargs[0].endswith(".feature"):
|
||||
behave_args = [
|
||||
"behave",
|
||||
behave_cmd,
|
||||
"-q",
|
||||
"--tags=not @skip",
|
||||
"--no-capture",
|
||||
@@ -574,7 +574,7 @@ def coverage_report(session: nox.Session):
|
||||
]
|
||||
else:
|
||||
behave_args = [
|
||||
"behave",
|
||||
behave_cmd,
|
||||
"-q",
|
||||
"--tags=not @skip",
|
||||
"--no-capture",
|
||||
|
||||
Reference in New Issue
Block a user