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

TeamHG-Memex / agnostic / 25 / 1
94%
master: 94%

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

20 Oct 2016 07:56PM UTC coverage: 76.152%. Remained the same
LC_ALL=C.UTF-8 MYSQL_USER=root MYSQL_PASSWORD='' POSTGRES_USER=postgres POSTGRES_PASSWORD=''

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

Source Files on job 25.1 (LC_ALL=C.UTF-8 MYSQL_USER=root MYSQL_PASSWORD='' POSTGRES_USER=postgres POSTGRES_PASSWORD='')
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25
  • Travis Job 25.1
  • f0b8445f on github
  • Prev Job for LC_ALL=C.UTF-8 MYSQL_USER=root MYSQL_PASSWORD='' POSTGRES_USER=postgres POSTGRES_PASSWORD='' on master (#24.1)
  • Next Job for on master (#71.1)
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