无法使用Randoop生成测试类

huangapple 未分类评论43阅读模式
英文:

Unable to generate test classes with Randoop

问题

  1. 大家好,我正在使用 Randoop,当我尝试生成一些测试用例时,我运行了命令,然后我得到了以下错误:
  2. 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 ="
  3. com.company.Circle"
  4. Randoop for Java 版本 "4.2.4,分支主,提交 be6dbd3,日期 2020-07-14"。
  5. 非法参数 --testclass==com.company.Circle,应为类名
  6. 根据我在网上看到的一些教程,类路径包含两个路径,第一个路径是我想要测试的类的 .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.

huangapple
  • 本文由 发表于 2020年7月24日 17:11:00
  • 转载请务必保留本文链接:https://java.coder-hub.com/63070489.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定