tests: better cargo test arguments
This commit is contained in:
parent
91441d4d3f
commit
e3b020c6ed
1 changed files with 13 additions and 2 deletions
15
noxfile.py
15
noxfile.py
|
|
@ -107,7 +107,9 @@ def tests(session: nox.Session):
|
||||||
session.env.update(ENV)
|
session.env.update(ENV)
|
||||||
session.install("-e", "./pyargus")
|
session.install("-e", "./pyargus")
|
||||||
try:
|
try:
|
||||||
session.run("cargo", "test", external=True)
|
session.run(
|
||||||
|
"cargo", "test", "--workspace", "--exclude", "pyargus", external=True
|
||||||
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
...
|
...
|
||||||
try:
|
try:
|
||||||
|
|
@ -151,7 +153,16 @@ def coverage(session: nox.Session):
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
COVERAGE_DIR.mkdir(exist_ok=True)
|
COVERAGE_DIR.mkdir(exist_ok=True)
|
||||||
session.run("cargo", "+nightly", "test", external=True, silent=True)
|
session.run(
|
||||||
|
"cargo",
|
||||||
|
"+nightly",
|
||||||
|
"test",
|
||||||
|
"--workspace",
|
||||||
|
"--exclude",
|
||||||
|
"pyargus",
|
||||||
|
external=True,
|
||||||
|
silent=True,
|
||||||
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue