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

TeamHG-Memex / agnostic / 25
94%

Build:
DEFAULT BRANCH: master
Ran 20 Oct 2016 08:01PM UTC
Jobs 1
Files 4
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

pending completion
25

push

travis-ci

mehaase
Improve test output.

Test output was hard to read because we have 2 classes that implement
the same set of test methods, e.g.:

  root@60d25a25117a:/opt/agnostic# python3 -m tests -v
  The "bootstrap" CLI command creates a migrations table. ... ok
  The "bootstrap" CLI command does not recreate the migrations table. ... ok
  The "bootstrap" CLI command creates a migrations table. ... ok
  The "bootstrap" CLI command does not recreate the migrations table. ... ok

Note how the tests are repeated twice -- once for MySQL and once more for
Postgres -- but the reason for the repetition isn't clear from this output.
Furthermore, when a test fails, the traceback will show the failure occurred
in an abstract base class, making it difficult to ascertain which class
needs to be fixed.

This commit adds a Nose plugin (and a Nose wrapper that registers the plugin)
that prints the class name next to each test:

  root@60d25a25117a:/opt/agnostic# python3 -m tests --with-reportclassname -v
  [TestMysql] The "bootstrap" CLI command creates a migrations table. ... ok
  [TestMysql] The "bootstrap" CLI command does not recreate the migrations table. ... ok
  [TestPostgreSql] The "bootstrap" CLI command creates a migrations table. ... ok
  [TestPostgreSql] The "bootstrap" CLI command does not recreate the migrations table. ... ok

The new output makes it clear that two different classes are being tested, and
if a failure occurs, it will also be clear which class it occurred in.

380 of 499 relevant lines covered (76.15%)

0.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25.1 (LC_ALL=C.UTF-8 MYSQL_USER=root MYSQL_PASSWORD='' POSTGRES_USER=postgres POSTGRES_PASSWORD='') 20 Oct 2016 08:01PM UTC 0
76.15
Travis Job 25.1
Source Files on build 25
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #25
  • f0b8445f on github
  • Prev Build on master (#24)
  • Next Build on master (#71)
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