Skip to content

Commit 6d2a861

Browse files
matthew29tangcopybara-github
authored andcommitted
chore: Prevent warnings from logging to JUnit XML file
PiperOrigin-RevId: 936323553
1 parent dd52cad commit 6d2a861

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ def default(session):
220220
"auto", # Use all available CPU cores
221221
"--quiet",
222222
"--durations=50",
223-
# Suppress all warnings to reduce JUnit XML size.
224-
"-W",
225-
"ignore",
223+
# Disable the warnings plugin entirely to reduce JUnit XML size.
224+
"-p",
225+
"no:warnings",
226226
# Disable capturing stdout/stderr for passed tests to reduce XML bloat.
227227
"-o",
228228
"junit_log_passing_tests=False",

0 commit comments

Comments
 (0)