JUnit 5 无法在带有 ANT Java 项目的 Netbeans 17 上运行。错误是:
/home/alumno/snap/netbeans/common/76/executor-snippets/junit.xml:184: The following error occurred while executing this line:
/home/alumno/snap/netbeans/common/76/executor-snippets/junit.xml:128: The <classpath> or <modulepath> for <junit> must include junit.jar if not in Ant's own classpath
BUILD FAILED (total time: 0 seconds)
使用 JUnit 4 它可以工作并且测试运行正确。