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

PulpQE / pulp-smash / 250
63%

Build:
DEFAULT BRANCH: master
Ran 12 Feb 2016 10:41PM UTC
Jobs 4
Files 6
Run time 29min
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
250

push

travis-ci

Ichimonji10
Change how OSTree tests are selected

A function named `load_tests` is in module `pulp_smash.tests.ostree`. This
function is automatically called by the unittest (or unittest2) test runner
according to the load_tests protocol. [1] This works well, but few if any third
party test runners support the protocol. (To the best of my knowledge, only
nose2 supports the load_tests protocol, and this support is nominal.)

Many third party test runners add JUnit-style XML reporting. This reporting is
valuable, especially when combined with a tool like Jenkins. Unfortunately, it's
not so easy to get reports with the unittest test runner.

The conflict here is tha we want JUnit-style XML reporting *and* easy test
selection. There's a couple routes forward:

* Drop support for unittest (and unittest2) and adopt the test selection
  features of a third party test runner.
* Plow forward and put more work into figuring out how to make unittest produce
  reports.
* Don't use the load_tests protocol. Instead, add `setUpModule` functions that
  perform the same task into each individual module of tests.

This commit adopts the third route. This route ensures that Pulp Smash continues
to be compatible with the standard library's `unittest` module and allows
reports to be generated by third party tools. The main drawback is some level of
redundant code. (Options for reducing this redundancy may be available.)

Test results are as expected for the following two commands:

    python -m unittest2 discover pulp_smash.tests.ostree
    py.test pulp_smash/tests/ostree/

271 of 357 relevant lines covered (75.91%)

3.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 250.1 12 Feb 2016 10:41PM UTC 0
75.91
Travis Job 250.1
2 250.2 12 Feb 2016 10:42PM UTC 0
75.91
Travis Job 250.2
3 250.3 12 Feb 2016 10:41PM UTC 0
75.91
Travis Job 250.3
4 250.4 12 Feb 2016 10:41PM UTC 0
75.91
Travis Job 250.4
Source Files on build 250
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #250
  • bebc4b27 on github
  • Prev Build on master (#247)
  • Next Build on master (#252)
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

© 2025 Coveralls, Inc