[TIP] Can output of failed py.test instances be configured?

Thijs Engels thijs at buckazoids.com
Fri Aug 10 04:17:16 PDT 2012

On Fri, Aug 10, 2012, at 10:41, Floris Bruynooghe wrote:
> On 10 August 2012 08:32, Thijs Engels <thijs at buckazoids.com> wrote:
> > By default py.test (rightfully) shows the whole test function up
> > until the failing assert statement. Is it possible to merely show
> > the failing assert statement?
> You can use --tb=short or --tb=no, there's a few more values this
> could have depending on the version, check --help.  Does that cover
> your case?
> Regards, Floris

The tb=short is exactly what I was after. I wonder how I missed it from
the documentation. Thank you very much for your answer.


More information about the testing-in-python mailing list