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

PulpQE / pulp-smash / 1209 / 1
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 09 Jan 2017 04:06PM UTC
Files 6
Run time 0s
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

09 Jan 2017 03:58PM UTC coverage: 65.511% (-0.9%) from 66.373%
1209.1

push

travis-ci

Ichimonji10
Make test case more resilient against errors

Add a new method, `pulp_smash.selectors.skip_if`. This method is similar
to `@unittest.skipIf`, but more flexible: it lets one execute skipping
logic at runtime and is capable of accessing class and instance
attributes.

Why make this method available? It exists because of the structure of
the unittest module:

1. The `setUpClass` method lacks access to certain tools like the
   `addCleanup` method. As a result, it is desirable to move
   failure-prone code to other locations, such as test methods.
2. Some failure-prone code should control whether or not the test
   methods in a test case should execute, but this is difficult to do,
   because all test methods execute regardless of how many test methods
   execute.
3. The `skip_if` decorator lets one move failure-prone code into a
   regular test method *and* control whether subsequent test methods
   execute.

This decorator may make it easier to avoid
`pulp_smash.utils.BaseAPITestCase`.

378 of 577 relevant lines covered (65.51%)

0.66 hits per line

Source Files on job 1209.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1209
  • Travis Job 1209.1
  • aacf6fcd on github
  • Prev Job for on master (#1207.1)
  • Next Job for on master (#1213.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc