Idea write JUnit test case found:…empty test suite

Why can’t you stop buying 618?From the technical dimension to explore>>>

When learning mybatis from the video, I used JUnit to write a test case to test Dao method, and reported the following error:

After reading some posts on the Internet, some said to delete the root directory. Idea file, and some said to clear the run/debug configuration, but it was not solved. I remembered that I had reported an error before:

This means that the output path is unknown. It was set to./out at that time. Just read a post saying that class not found is not that the class cannot be found, but that the compiled. Class file cannot be found, so the output path is set to out under the project, and the problem is solved

The setting method is as follows:

1. Press Ctrl + Shift + Alt + s to find Modules > The path is as follows:

2. Select project and set the output folder according to your own needs

Similar Posts: