我下载并成功运行了这个项目:
https://github.com/spring-guides/gs-accessing-data-mongodb
我注意到文件中有一些测试用例:
https://github.com/spring-guides/gs-accessing-data-mongodb/blob/master/complete/src/test/java/hello/CustomerRepositoryTests.java
要从命令行运行主应用程序,我需要:
$ ./mvnw spring-boot:run
现在,我想知道为了运行测试用例,我需要执行哪些命令?
谢谢!
发布于 2018-07-21 23:47:33
只需运行此命令即可运行测试。
mvn试验
https://spring.io/guides/gs/testing-web/可以向您提供更多关于测试的信息。
https://stackoverflow.com/questions/51460884
相似问题