如何在Eclipse上安装JUnit?

时间:2018-05-21 11:44:18

标签: eclipse junit

我按照tutorial的所有步骤进行了操作 但是,当我进行测试时,它似乎有些错误...

这是我电脑上的一些照片,我对你有所帮助,看看我做了什么...... The folder where i downloaded junit from http://search.maven.org/#search|gav|1|g:%22junit%22%20AND%20a:%22junit%22 Createt JUNIT_HOME variable Full variable value is: %CLASSPATH%;%JUNIT_HOME%\junit4.10.jar;.;

我还复制了教程中的代码,仅用于测试和配置构建路径并添加了外部JAR enter image description here  但是当我运行它时,它会在它前面显示红色标记(所以有些东西是错误的),而不是像教程中那样绿色。 enter image description here

当我添加外部JAR并扩展Junit libary时,只有不同之处在我的笔记本电脑和教程中有点不同......在tutoral中它看起来像这样: enter image description here

我错在哪里以及如何修复错误以便核心安装JUnit?

0 个答案:

没有答案