#1
11th August 2017, 02:04 PM
| |||
| |||
Py Test xfail
Hi I would like to have the information about Skip and xfail in dealing with tests that cannot succeed as well as pytest fixes and new xfail feature?
|
#2
11th August 2017, 02:08 PM
| |||
| |||
Re: Py Test xfail
You can stamp test works that can't be keep running on specific stages or that you hope to fail so pytest can manage them in like manner and present an outline of the test session, while keeping the test suite green. A skip implies that you anticipate that your test will pass just if a few conditions are met, generally pytest should skip running the test out and out. Basic cases are skipping windows-just tests on non-windows stages, or skipping tests that rely upon an outside asset which is not accessible right now (for instance a database). A xfail implies that you anticipate that a test will come up short for reasons unknown. A typical illustration is a test for a component not yet actualized, or a bug not yet settled. pytest checks and records skip and xfail tests independently. Point by point data about skipped/xfailed tests is not appeared of course to abstain from jumbling the yield. pytest is a develop Python testing apparatus with more than a 1100 tests against itself, passing on various translators and stages. The 2.6.1 discharge is drop-in good to 2.5.2 and really settles a few relapses presented with 2.6.0. It likewise conveys a little element to the xfail marker which now perceives expected special cases As usual, one can upgrade from pypi via: pip install -U pytest |
|