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

se-edu / addressbook-level4 / 5014
94%

Build:
DEFAULT BRANCH: master
Ran 20 Mar 2019 06:18AM UTC
Jobs 1
Files 79
Run time 4s
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
5014

push

travis-ci

pyokagan
<a href="https://github.com/se-edu/addressbook-level4/commit/<a class=hub.com/se-edu/addressbook-level4/commit/<a class="double-link" href="https://git"><a class=hub.com/se-edu/addressbook-level4/commit/<a class="double-link" href="https://git"><a class=hub.com/se-edu/addressbook-level4/commit/1cb12c6991a011a70ea48d0f2eae42beafbb810b">1cb12c699">&lt;a href=&quot;https://github.com/se-edu/addressbook-level4/commit/</a><a class="double-link" href="https://github.com/se-edu/addressbook-level4/commit/&lt;a class=&quot;double-link&quot; href=&quot;https://git">&lt;a class=</a>hub.com/se-edu/addressbook-level4/commit/1cb12c6991a011a70ea48d0f2eae42beafbb810b">1cb12c699</a><a href="https://github.com/se-edu/addressbook-level4/commit/1cb12c6991a011a70ea48d0f2eae42beafbb810b">&lt;a href=&quot;https://github.com/se-edu/addressbook-level4/commit/1cb12c6991a011a70ea48d0f2eae42beafbb810b&quot;&gt;&amp;quot;&amp;gt;StringUtilTest: Remove Hamcrest String matcher

Currently, in StringUtilTest#getDetails_exceptionGiven, we use
Hamcrest&amp;amp;#39;s string matching and assert libraries.
This library was introduced in [1], however no justification was
given on why we specifically used these Hamcrest libraries. In fact,
this is the only instance in the entire project where we use this
dependency.

We are only using the assertThat and contains API of the Hamcrest
library, whose corresponding functionality is already implemented in
JUnit#assertTrue and Java String#contains. The only extra benefit that
this Hamcrest library provides is in its more detailed error message
when tests fail [2]. While convenient, this functionality is not
absolutely critical. This is because developers can use the debugger
to inspect the state of messages right before the error.

There is more value in this case to standardise the usage of our
assert statements. The Hamcrest library introduces a new API that
developers of AB4 will have to learn. New developers might be confused
why we use two different APIs to conduct tests. By standardising to
use the JUnit assertTrue, we remove the need to learn multiple APIs,
while achieving the same outcome.

Hence, let&amp;amp;#39;s remove the Hamcrest libraries and replace them with their
equival... (continued)

1395 of 1488 relevant lines covered (93.75%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5014.1 20 Mar 2019 06:18AM UTC 0
93.75
Travis Job 5014.1
Source Files on build 5014
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5014
  • 1cb12c69 on github
  • Prev Build on master (#4994)
  • Next Build on master (#5037)
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