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

se-edu / addressbook-level4 / 4394
94%

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

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

Jobs
ID Job ID Ran Files Coverage
1 4394.1 03 Apr 2018 07:48AM UTC 0
92.38
Travis Job 4394.1
Source Files on build 4394
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4394
  • 435849cc on github
  • Prev Build on master (#4382)
  • Next Build on master (#4413)
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