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


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

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

From Venkatesh Prasad Ranganath <rvprasad@ksu.edu>
Newsgroups comp.lang.python.announce
Subject Are you interested in distinguishing between assertion violations and other kinds of failures in test cases?
Date 2016-05-30 19:37 -0500
Message-ID <mailman.49.1464701271.1839.python-announce-list@python.org> (permalink)
References <CACYG_RWqFoinEXKmcJZsMqsUv=eir5s9hX_DEcZTy+gjwpWZ=g@mail.gmail.com>

Show all headers | View raw


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

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web