Skip to content

Commit e3b020c

Browse files
committed
tests: better cargo test arguments
1 parent 91441d4 commit e3b020c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

noxfile.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ def tests(session: nox.Session):
107107
session.env.update(ENV)
108108
session.install("-e", "./pyargus")
109109
try:
110-
session.run("cargo", "test", external=True)
110+
session.run(
111+
"cargo", "test", "--workspace", "--exclude", "pyargus", external=True
112+
)
111113
except Exception:
112114
...
113115
try:
@@ -151,7 +153,16 @@ def coverage(session: nox.Session):
151153
)
152154
try:
153155
COVERAGE_DIR.mkdir(exist_ok=True)
154-
session.run("cargo", "+nightly", "test", external=True, silent=True)
156+
session.run(
157+
"cargo",
158+
"+nightly",
159+
"test",
160+
"--workspace",
161+
"--exclude",
162+
"pyargus",
163+
external=True,
164+
silent=True,
165+
)
155166
except Exception:
156167
...
157168

0 commit comments

Comments
 (0)