Skip to content

Commit

Permalink
tests: better cargo test arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
anand-bala committed Oct 4, 2023
1 parent 91441d4 commit e3b020c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ def tests(session: nox.Session):
session.env.update(ENV)
session.install("-e", "./pyargus")
try:
session.run("cargo", "test", external=True)
session.run(
"cargo", "test", "--workspace", "--exclude", "pyargus", external=True
)
except Exception:
...
try:
Expand Down Expand Up @@ -151,7 +153,16 @@ def coverage(session: nox.Session):
)
try:
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:
...

Expand Down

0 comments on commit e3b020c

Please sign in to comment.