Closed BohdanObruch closed 3 months ago
@BohdanObruch what did you use to report the results to testomat.io? please give command example from terminal
I used the pytest-analyzer plugin, mark.skip appears in the report, but mark.xfail does not @
I use pytest --analyzer sync
command
and what is somewhat interesting:
if I run tests by command in the console
set TESTOMATIO=api_key; pytest --analyzer sync
, for some reason does not accept the installation of the TESTOMATIO variable, indicates an error, only when I manually add it to the PC environment variable, it works
will check and fix on weekend
@BohdanObruch sorry for a delay. I was sick. I've looked through your issue and cannot figure out how to help you. There is no such status in testomat.io like xpassed. There only 3 @poliarush pls correct me if I am wrong
Hello, thank you for your reply Oleksii. I think you mean these statuses, but what about this pytest mark? Display in "Passed" status in testomat.io is not correct
do you suggest to fail this test in testomat.io?
pycharm considers it as passed
pytest ...
"with such a launch as you indicated there, regardless of the pytest marks in the test, only the status of either passed or failed will be displayed
@Ypurek @BohdanObruch from testomat.io point of view there only 3 statues:
it's tricky part how to treat xfail and xpass
I think, the mapping from pytest's statuses to testomat.io's statuses should be like this:
However, I suggest to put message for test case for following statuses to it's visible in the list:
@DavertMik I think we need to introduce labels and custom fields for testrun
@poliarush thank you, I agree with you
related to https://github.com/testomatio/app/issues/881
@BohdanObruch also, i've created a new item to introduce labels and custom fields for testrun, so then you can customly assign necessary labels to testruns and filter by it with some statistics
Closed in favor of https://github.com/testomatio/app/issues/881
Describe the bug In the "Runs" tab, the real status for tests with the @mark.xfail mark is not displayed
Precondition Create a test and add pytest mark with this test @mark.xfail
To Reproduce Steps to reproduce:
Expected behavior The status of the test should be "xpassed" and with a display of why. For example, how the reason for failed tests is displayed
Screenshots
Desktop (please complete the following information):