课程: Gradle for Java-Based Applications and Libraries
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Challenge: Fix a failed test suite
课程: Gradle for Java-Based Applications and Libraries
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.
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。