studiofu / demo-unit-test

demo of performing unit test in java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tutorial site

https://ithelp.ithome.com.tw/articles/10196078

jsonPath reference:https://github.com/jayway/JsonPath

hamcrest reference:http://hamcrest.org/JavaHamcrest/javadoc/1.3/

https://stackoverflow.com/questions/6178583/maven-does-not-find-junit-tests-to-run

https://stackoverflow.com/questions/59193282/difference-between-junit-vintage-engine-and-junit-jupiter-engine

need to add the vintage engine for running test cases for junit4

<dependency>
        <groupId>org.junit.vintage</groupId>
        <artifactId>junit-vintage-engine</artifactId>
        <scope>test</scope>
</dependency>

generate surfire report

mvn surefire-report:report

About

demo of performing unit test in java


Languages

Language:Java 100.0%