How to change the output format? #10455
-
This is like this: root@raspberrypi4-64:/usr/AGL/agl-test/tests# agl-test -vs tests/libpam/run_tests.py::test_name[tst-pam_acct_mgmt] PASSED balabala...... Question is, how can I decide the name of this part of the output: tests/libpam/run_tests.py For example I would perfer it to just be like: libpam_tests import pytest import tests.libpam.parser as parser from plugins.agl_test_ptest_base import PTESTBase class LIBPAMBase(PTESTBase):
instance = LIBPAMBase() @pytest.fixture(scope='module') def setup_module(): @pytest.mark.parametrize( def test_name(testbase: LIBPAMBase, case_name): if name == 'main': |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
(If possible please try to format your post correctly) That is not currently customizable, if you really want to do it, you can do it by writing your own plugin. See |
Beta Was this translation helpful? Give feedback.
-
Seems inavidable to use the sugar.
Thanks.
Yan
Bruno Oliveira ***@***.***> 于2022年11月2日周三 21:34写道:
… (If possible please try to format your post correctly)
That is not currently customizable, if you *really* want to do it, you
can do it by writing your own plugin. See pytest-sugar for an example.
—
Reply to this email directly, view it on GitHub
<#10455 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWBCZ3L52BKAX64Q2SYJ7STWGJUVPANCNFSM6AAAAAARTU6MPE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
(If possible please try to format your post correctly)
That is not currently customizable, if you really want to do it, you can do it by writing your own plugin. See
pytest-sugar
for an example.