EastAgile / robber.py

BDD / TDD assertion library for Python
MIT License
8 stars 1 forks source link

[r] Disable the lengthy tracebacks #57

Closed catriuspham closed 7 years ago

catriuspham commented 7 years ago

Related issue

https://github.com/EastAgile/robber.py/issues/42

Description

The traceback is no longer there whenever an expectation fails. Now, only the failure message shows up. This also works with ipython.

Usage

This fails:

In: expect(1).to.be.eq(2)
Out: 
robber.bad_expectation.BadExpectation: 
A = 1
B = 2
Expected A to equal B
coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.8%) to 99.222% when pulling 6cdec55c4eef7e73ae3b2b9be539b1428900a437 on chore/disable-traceback into 85ce13ae06cc6f8c908bcd58fd71b928d2249176 on master.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.8%) to 99.222% when pulling 287d7b8157dd03ee214c0ca4365e29651f7414c3 on chore/disable-traceback into 85ce13ae06cc6f8c908bcd58fd71b928d2249176 on master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 06cb3f85c7531c63f9bdaa32b9d5f2a8162f882d on chore/disable-traceback into 85ce13ae06cc6f8c908bcd58fd71b928d2249176 on master.

catriuspham commented 7 years ago

@hieueastagile Please take a look

hieueastagile commented 7 years ago

LGTM, thanks @catriuspham

catriuspham commented 7 years ago

@oyster Please help merge this PR and close https://github.com/EastAgile/robber.py/issues/42. Thanks