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

dionyziz / OpenBazaar
20%
master: 28%

Build:
Build:
LAST BUILD BRANCH: v0.5.0
DEFAULT BRANCH: master
Repo Added 23 Sep 2014 09:41PM UTC
Files 43
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

LAST BUILD ON BRANCH remove_declaration_tests
branch: remove_declaration_tests
CHANGE BRANCH
x
Reset
  • remove_declaration_tests
  • backmerge_0.2.2
  • bsd_find
  • contributing_release
  • coverage
  • develop
  • hide_private_key
  • log_no_images
  • master
  • system_test
  • v0.3.0
  • v0.4.0
  • v0.5.0

pending completion
139

push

travis-ci

dionyziz
Remove constants "unit" tests.

Unit tests are meant to test logic, not declarations. This is why we
don't test our HTML and CSS code. Unit tests express contractual, behavioral
obligations of modules. Constants do not correspond to contracts.

This test needs to go, so I'm removing it.

It seems to me that here we're simply trying to increase the coverage
metric and this is hurting the quality of our tests. Let's keep in mind
that coverage is a measure that helps us improve, but the end goal is
better testing.

Testing that constants are equal to what they are is unnecessary
duplication and doesn't add any value to the tests. Furthermore, it
violates DRY, as every constant update must come with a test update.
This is true for all testing, but in this case the same thing is
expressed in the test and in the implementation and is not a form of
contractual obligation.

If you must, you can test that the constants exist and are of specified
types. Feel free to readd that in case you consider it a necessity.

743 of 3761 relevant lines covered (19.76%)

0.2 hits per line

Relevant lines Covered
Build:
Build:
3761 RELEVANT LINES 743 COVERED LINES
0.2 HITS PER LINE
Source Files on remove_declaration_tests
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
139 remove_declaration_tests Remove constants "unit" tests. Unit tests are meant to test logic, not declarations. This is why we don't test our HTML and CSS code. Unit tests express contractual, behavioral obligations of modules. Constants do not correspond to contracts. Th... push 12 Oct 2014 08:57PM UTC dionyziz travis-ci pending completion  
See All Builds (32)
  • Repo on GitHub
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