Skip to content

Commit

Permalink
make tests results easier to parse
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier authored and vfdev-5 committed Jan 18, 2024
1 parent d4b4682 commit f995386
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/scripts/unittest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ pip install --progress-bar=off pytest pytest-mock pytest-cov expecttest!=0.2.0
echo '::endgroup::'

python test/smoke_test.py
pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 \
test/test_transforms_v2.py -k kernel
pytest --color no --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" test/test_transforms_v2.py -k kernel
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[pytest]
addopts =
# show tests that (f)ailed, (E)rror, or (X)passed in the summary
-rfEX
-ra
# Make tracebacks shorter
--tb=short
# enable all warnings
Expand Down
2 changes: 1 addition & 1 deletion test/test_transforms_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _check_kernel_compiled_vs_eager(kernel, input, *args, rtol, atol, **kwargs):
expected,
rtol=rtol,
atol=atol,
msg=lambda msg: f"\n{input=}\n\n{args=}\n\n{kwargs=}\n\n{actual=}\n\n{expected=}\n\n{msg}",
# msg=lambda msg: f"\n{input=}\n\n{args=}\n\n{kwargs=}\n\n{actual=}\n\n{expected=}\n\n{msg}",
)


Expand Down

0 comments on commit f995386

Please sign in to comment.