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

se-edu / addressbook-level4 / 4394 / 1
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 03 Apr 2018 07:48AM UTC
Files 92
Run time 3s
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

03 Apr 2018 07:43AM UTC coverage: 92.375%. Remained the same
4394.1

push

travis-ci

Zhiyuan-Amos
Gradle: upgrade to JUnit5

Gradle uses JUnit 4.12 for testing which is an older version of JUnit.

Let's upgrade to JUnit 5. To use JUnit 5, we need to add in additional
dependencies junit-jupiter-api and junit-jupiter-engine.
Junit-jupiter-engine is used to execute the JUnit 5 tests during
runtime, while junit-jupiter-api provides the api required for writing
tests. Also, we need to use JUnit Platform, which is how Gradle
enables JUnit to run tests using its engine.

JUnit 5 has a few differences with JUnit 4, which means the tests will
need to be changed to run on the JUnit 5 engine. Some examples of
differences between JUnit5 and JUnit4 tests:
1. Different imports. (e.g. org.junit.jupiter.api.Test instead of
org.junit.Test)
2. Test cannot be used for specifying expectations. We use this to
specify timeout in `PersonListPanelTest`. Instead we should now use
assertTimeoutPreemptively
3. @Before is renamed to @BeforeEach
4. @After is renamed to @AfterEach
5. @BeforeClass is renamed to @BeforeAll
6. @AfterClass is renamed to @AfterAll
7. We can group assertions together using assertAll
8. @Rule and @ClassRule are not used in JUnit5. Instead, we need to
@ExtendWith, which generally requires creating an extension class.

Let's enable legacy support for JUnit 4 tests. By adding
junit-vintage-engine as a dependency, JUnit 4 tests can be run
normally.

1478 of 1600 relevant lines covered (92.38%)

0.92 hits per line

Source Files on job 4394.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 4394.1
  • 435849cc on github
  • Prev Job for on master (#4382.1)
  • Next Job for on master (#4413.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