英文:
Unable to generate test classes with Randoop
问题
大家好,我正在使用 Randoop,当我尝试生成一些测试用例时,我运行了命令,然后我得到了以下错误:
D:\Progetti\Junit_test\lib>java -classpath "D:\Progetti\Junit_test\out\production\Junit_test;D:\Progetti\Junit_test\lib\randoop-all-4.2.4.jar" randoop.main.Main gentests --testclass ="
com.company.Circle"
Randoop for Java 版本 "4.2.4,分支主,提交 be6dbd3,日期 2020-07-14"。
非法参数 --testclass==com.company.Circle,应为类名
根据我在网上看到的一些教程,类路径包含两个路径,第一个路径是我想要测试的类的 .class 实例的位置,第二个路径是 Randoop 的位置。
英文:
Hello everyone I am using Randoop and when I try to generate some test cases I run the command and I get the following error :
D:\Progetti\Junit_test\lib>java -classpath "D:\Progetti\Junit_test\out\production\Junit_test;D:\Progetti\Junit_test\lib\randoop-all-4.2.4.jar" randoop.main.Main gentests --testclass ="
com.company.Circle"
Randoop for Java version "4.2.4, branch master, commit be6dbd3, 2020-07-14".
Illegal argument --testclass==com.company.Circle, should be a class name
As I have seen some tutorial online the classpath contains two path , the first to the location of the .class instance of the class I want to test , the second to the location of Randoop.
专注分享java语言的经验与见解,让所有开发者获益!
评论