• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pytest-dev / pytest / 6191
94%
master: 51%

Build:
Build:
LAST BUILD BRANCH: future/pathlib
DEFAULT BRANCH: master
Ran 27 Sep 2018 09:20AM UTC
Jobs 2
Files 110
Run time 11min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
6191

Pull #4047

travis-ci

web-flow
Add pytest_before_assert hook.

This hook will run before every assert, in contrast to the
pytest_assertrepr_compare hook which only runs for failing asserts.

As of now, no parameters are passed to the hook.

We use this hook to print the assertion code of passed assertions to
collect test evidence. This is done using inspect::

    inspect.stack()[7].code_context[0].strip()

Signed-off-by: Schweizer, Robert <rschweizer@definiens.com>
Pull Request #4047: Add pytest_before_assert hook.

4221 of 4843 branches covered (87.16%)

19 of 19 new or added lines in 5 files covered. (100.0%)

22404 of 23876 relevant lines covered (93.83%)

1.87 hits per line

Jobs
ID Job ID Ran Files Coverage
21 6191.21 (TOXENV=py37) 27 Sep 2018 09:20AM UTC 0
93.83
Travis Job 6191.21
23 6191.23 (TOXENV=py37) 27 Sep 2018 09:31AM UTC 0
93.62
Travis Job 6191.23
Source Files on build 6191
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6191
  • Pull Request #4047
  • PR Base - features (#6158)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc