From the course: Gradle for Java-Based Applications and Libraries

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Challenge: Fix a failed test suite

Challenge: Fix a failed test suite

From the course: Gradle for Java-Based Applications and Libraries

Start my 1-month free trial

Challenge: Fix a failed test suite

(upbeat music) - [Instructor] In this chapter, we learned how to declare dependencies for the test framework JUnit5 so that the test code can reference its API. Later, we executed the test suite using the test task, inspected the test reports, and tweaked test logging. Here, I want to put your knowledge into practice. For this challenge, I want you to configure test execution for the existing test suite. The test cases already exist and have been implemented by JUnit5 as the test framework. First, add the correct dependencies for JUnit5. Then execute the test suite. You will notice that one of the tests will fail. Identify the failing test by configuring the test task to lock the full stack trace. After identifying the root cause, correct it so that the test task passes. Have a look at the test report for more details. This exercise shouldn't take longer than 10 minutes. Consult the grade or user guide for more information.

Contents