We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
coverage
1 parent 097709b commit 7c3fd81Copy full SHA for 7c3fd81
noxfile.py
@@ -226,16 +226,16 @@ def pinned_requirements(path: Path) -> Iterator[Tuple[str, str]]:
226
227
@nox.session
228
def coverage(session: nox.Session):
229
- session.run(
230
- "python",
231
- "-c",
232
- "'import os, sys; os.path.exists(sys.argv[1]) or os.mkdir(sys.argv[1])'",
233
- "./.coverage-output"
234
- )
+ if not os.path.exists("./.coverage-output"):
+ os.mkdirs("./coverage-output")
235
session.run(
236
"pytest",
237
"--cov=pip",
238
"--cov-config=./setup.cfg"
+ env={
+ "COVERAGE_OUTPUT_DIR": "./coverage-output",
+ "COVERAGE_PROCESS_START": "./setup.cfg",
+ }
239
)
240
241
0 commit comments