![]() In theory, we do not need any IDE to work on Maven projects, but it is always nice to have an IDE. ![]() But before looking into the code coverage report, let us import the Maven project into Eclipse. If you have a stand-alone Maven installed on your computer, you can simply issue the "mvn clean install" command against the "pom.xml" file and the code coverage report will be generated. To use Jacoco to generate the code coverage report, we can simply add the Jacoco plugin in the "pom.xml" and give it some very simple configurations.Since I am using TestNG to run the unit test, the TestNG is added as a Maven dependency.Public class StudyGroupTest public void testStudyGroupClass() default-prepare-agent prepare-agent default-report prepare-package report
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |