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

PulpQE / pulp-smash / 427
63%

Build:
DEFAULT BRANCH: master
Ran 12 Apr 2016 05:03PM UTC
Jobs 3
Files 6
Run time 28s
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
427

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%)

2.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 427.1 12 Apr 2016 05:04PM UTC 0
74.46
Travis Job 427.1
3 427.3 12 Apr 2016 05:04PM UTC 0
74.46
Travis Job 427.3
4 427.4 12 Apr 2016 05:03PM UTC 0
74.46
Travis Job 427.4
Source Files on build 427
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #427
  • c9825e54 on github
  • Prev Build on master (#425)
  • Next Build on master (#429)
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