Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #2156 > unrolled thread

Are you interested in distinguishing between assertion violations and other kinds of failures in test cases?

Started byVenkatesh Prasad Ranganath <rvprasad@ksu.edu>
First post2016-05-30 19:37 -0500
Last post2016-05-30 19:37 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python.announce

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Are you interested in distinguishing between assertion violations and other kinds of failures in test cases? Venkatesh Prasad Ranganath <rvprasad@ksu.edu> - 2016-05-30 19:37 -0500

#2156 — Are you interested in distinguishing between assertion violations and other kinds of failures in test cases?

FromVenkatesh Prasad Ranganath <rvprasad@ksu.edu>
Date2016-05-30 19:37 -0500
SubjectAre you interested in distinguishing between assertion violations and other kinds of failures in test cases?
Message-ID<mailman.49.1464701271.1839.python-announce-list@python.org>
Currently, pytest flags a test case as failed if there is either an
uncaught exception or an assertion violation during the execution of the
test case.  This conflates failures in the UUT or the test case (that do
not pertain to the property being tested) as violation of the property
being tested.

This issue is addressed by *pytest-finer-verdicts* plugin.  The plugin
changes the reporting scheme to report assertion violations as test
failures (F) and other kinds of failures as test errors (E).

The plugin is available on PyPI --
https://pypi.python.org/pypi/pytest-finer-verdicts/
<https://pypi.python.org/pypi/pytest-finer-verdicts/1.0>.

We hope you find the plugin useful.

Venkatesh-Prasad Ranganath
http://about.me/rvprasad

[toc] | [standalone]


Back to top | Article view | comp.lang.python.announce


csiph-web