2023 2024 Student Forum > Management Forum > Main Forum

 
  #2  
11th August 2017, 02:08 PM
Super Moderator
 
Join Date: Aug 2012
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


Quick Reply
Your Username: Click here to log in

Message:
Options

Thread Tools Search this Thread



All times are GMT +5. The time now is 03:56 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
SEO by vBSEO 3.6.0 PL2

1 2 3 4