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

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

Build:
Build:
LAST BUILD BRANCH: future/pathlib
DEFAULT BRANCH: master
Ran 27 Sep 2018 09:31AM UTC
Files 110
Run time 5s
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

27 Sep 2018 08:21AM UTC coverage: 93.623% (-0.2%) from 93.81%
TOXENV=py37

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.

4075 of 4703 branches covered (86.65%)

22358 of 23881 relevant lines covered (93.62%)

0.94 hits per line

Source Files on job 6191.23 (TOXENV=py37)
  • Tree
  • List 0
  • Changed 7
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 5819
  • Travis Job 6191.23
  • 39ef8196 on github
  • Prev Job for TOXENV=py37 on assert_hook_feature (#6158.21)
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