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

PulpQE / pulp-smash / 427 / 3
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 12 Apr 2016 05:04PM 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

12 Apr 2016 02:18PM UTC coverage: 74.458% (+1.0%) from 73.479%
427.3

push

travis-ci

Ichimonji10
Skip tests for which plugins are missing

Pulp has a plugin architecture, and support for many content unit types
can be provided by plugins. Thus, for Pulp Smash to assume that all
available plugins are installed on a target Pulp server is
inappropriate. A better approach is to inspect the target Pulp server at
run-time, determine which plugins are installed, and then run or skip
tests as appropriate. Do so.

The most elegant way to implement this is by hooking into the unittest
load_tests protocol. [1] Unfortunately, few third party test runners
implement proper support for this protocol. In addition, other test
runners do provide support the jUnit XML reporting, which is not
available in the unittest or unittest2 test runners. Work around this
issue by inserting plugin checks into `setUpModule` functions.

No new test failures are introduced as a result of this change. Test
results generated by executing the following command:

    python -m unittest2 discover pulp_smash.tests

Fix https://github.com/PulpQE/pulp-smash/issues/182.

[1] https://docs.python.org/3.5/library/unittest.html#load-tests-protocol

309 of 415 relevant lines covered (74.46%)

0.74 hits per line

Source Files on job 427.3
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 427
  • Travis Job 427.3
  • c9825e54 on github
  • Prev Job for on master (#425.3)
  • Next Job for on master (#429.3)
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