From e3b020c6ede0236eade1873676543db2ee3ceeae Mon Sep 17 00:00:00 2001 From: Anand Balakrishnan Date: Wed, 4 Oct 2023 15:51:35 -0700 Subject: [PATCH] tests: better cargo test arguments --- noxfile.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/noxfile.py b/noxfile.py index 7799911..6809af6 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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: @@ -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: ...