1. 确保idea是 2019的版本,低版本不能识别junit5
2.junit5的文档 https://junit.org/junit5/docs/current/user-guide/
3. junit5的例子 https://github.com/junit-team/junit5-samples/tree/master/junit5-jupiter-starter-maven
下载这个例子,在idea 2019 导入并打开,然后点击test目录,右键,选择运行所有单元测试。
1. 确保idea是 2019的版本,低版本不能识别junit5
2.junit5的文档 https://junit.org/junit5/docs/current/user-guide/
3. junit5的例子 https://github.com/junit-team/junit5-samples/tree/master/junit5-jupiter-starter-maven
下载这个例子,在idea 2019 导入并打开,然后点击test目录,右键,选择运行所有单元测试。