You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running 2 tests that have several subtests failing and I can see all the asserts failing in the console output in jenkins. However when I'm looking in the test report for each failed tests I see only the first assertion failures and for the next ones I see something like this ..........\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
See the report for one of my tests:
Failed
WORK_DIR.cop_regression.tests.test_main_window.TestMainWindow.test_04_new_contact_by_main_window (from pytest)
Failing for the past 8 builds (Since Failed#20 )
Took 10 sec.
add description
Error Message
AssertionError: 1 not greater than or equal to 2 : Value 102 for field CustNo not present in the receiver address window. Check field selector
Stacktrace
C:\WORK_DIR\cop_regression\tests\test_base.py:296: in __soft_assert_greater_or_equal
self.assertGreaterEqual(a, b, msg)
E AssertionError: 1 not greater than or equal to 2 : Value 102 for field CustNo not present in the receiver address window. Check field selector
Standard Output
FAILED [100%]
..\..\..\..\..\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
..\..\..\..\..\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
..\..\..\..\..\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
..\..\..\..\..\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
..\..\..\..\..\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
..\..\..\..\..\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
..\..\..\..\..\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
..\..\..\..\..\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
..\..\..\..\..\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
..\..\..\..\..\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
..\..\..\..\..\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
..\..\..\..\..\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
..\..\..\..\..\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
..\..\..\..\..\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
The command to run the tests is: pytest --junitxml=test_main_window.xml -v C:\WORK_DIR\cop_regression\tests\test_main_window.py
Thanks for looking into this
The text was updated successfully, but these errors were encountered:
Indeed we need better integration with the junitxml plugin. This is also related to #6 and pytest-dev/pytest#5047, so it will probably need at least a new pytest release (4.5) before we have enough flexibility to implement this. 👍
I'm running 2 tests that have several subtests failing and I can see all the asserts failing in the console output in jenkins. However when I'm looking in the test report for each failed tests I see only the first assertion failures and for the next ones I see something like this ..........\WORK_DIR\cop_regression\tests\test_main_window.py::TestMainWindow::test_04_new_contact_by_main_window FAILED [100%]
See the report for one of my tests:
I've added the all xml as well.
test_report.docx
The command to run the tests is: pytest --junitxml=test_main_window.xml -v C:\WORK_DIR\cop_regression\tests\test_main_window.py
Thanks for looking into this
The text was updated successfully, but these errors were encountered: