我尝试使用 IntelliJ在 GitHub 上运行这个开源项目的单个单元测试。
Execution failed for task ':test'.
No tests found for given includes: [DNAnalyzer.MainTest.mainClassshouldExist](--tests filter)
Run Code Online (Sandbox Code Playgroud)
package DNAnalyzer;
import org.junit.jupiter.api.Test;
public class MainTest {
@Test
public void mainClassshouldExist() throws ClassNotFoundException {
Class.forName("DNAnalyzer.Main");
}
}
Run Code Online (Sandbox Code Playgroud)
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter …Run Code Online (Sandbox Code Playgroud)