You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
openjdk version "17.0.5" 2022-10-18
OpenJDK Runtime Environment Temurin-17.0.5+8 (build 17.0.5+8)
OpenJDK 64-Bit Server VM Temurin-17.0.5+8 (build 17.0.5+8, mixed mode, sharing)
Operating System Version:
Edition: Windows 10 Home
Version: 22H2
Installed on: 5/3/2021
OS build: 19045.3693
Serial number: 004802701057
Experience: Windows Feature Experience Pack 1000.19053.1000.0
Steps I took:
Create a directory called test anywhere
Inside this directory, create three files called MyClass1.java and MyClass2.java and myclasses.txt
Paste the following contents into MyClass1.java, MyClass2.java, and myclasses.txt respectively:
import java.util.*;
public class MyClass1 {
public Object input;
public MyClass1 (Object input) {
this.input = input;
}
public String privateMethod1 (Object input) {
return input.toString();
}
}
import java.util.*;
public class MyClass2 {
public Integer input;
public MyClass2 (Integer input) {
this.input = input;
}
public Integer privateMethod2(Integer input) {
return input * 2;
}
}
MyClass1
MyClass2
Compile MyClass1.java and MyClass2.java using javac MyClass1 and javac MyClass2
Change into the directory containing the test subdirectory and run the following command: java -classpath "test/;[path to randoop-all-4.3.2.jar]" randoop.main.Main gentests --classlist="test/myclasses.txt" --time-limit=4
Note: If trying to replicate this error on Linux, you may need to edit some of the above commands. Notably, please change the ";" to ":"
This was the output I generated:
Randoop for Java version 4.3.2.
Will try to generate tests for 2 classes.
PUBLIC MEMBERS=10
Explorer = ForwardGenerator(steps: 0, null steps: 0, num_sequences_generated: 0;
allSequences: 0, regresson seqs: 0, error seqs: 0=0=0, invalid seqs: 0, subsumed_sequences: 0, num_failed_output_test: 0;
sideEffectFreeMethods: 1113, runtimePrimitivesSeen: 38)
Progress update: steps=1, test inputs generated=0, failing inputs=0 (2023-11-21T21:14:01.334531100Z 8.14M used)
Progress update: steps=75, test inputs generated=58, failing inputs=0 (2023-11-21T21:14:05.340745Z 89.1M used)
Normal method executions: 4690
Exceptional method executions: 0
Created file C:\Users\varun\IdeaProjects\randoop\RegressionTest0.java
Created file C:\Users\varun\IdeaProjects\randoop\RegressionTest.java
Wrote regression JUnit tests.
About to look for flaky methods.
Invalid tests generated: 0
Uncompilable sequences generated (count: 24).
Please report uncompilable sequences at https://github.com/randoop/randoop/issues ,
providing the information requested at https://randoop.github.io/randoop/manual/index.html#bug-reporting .
Obviously, I don't think Randoop should be generating uncompilable sequences here. Additionally, I was able to print out why some of the sequences being generated were uncompilable and this was the output for one of those sequences:
Randoop Version: 4.3.2
Output of java -version:
Operating System Version:
Steps I took:
test
anywhereMyClass1.java
andMyClass2.java
andmyclasses.txt
MyClass1.java
,MyClass2.java
, andmyclasses.txt
respectively:MyClass1.java
andMyClass2.java
usingjavac MyClass1
andjavac MyClass2
test
subdirectory and run the following command:java -classpath "test/;[path to randoop-all-4.3.2.jar]" randoop.main.Main gentests --classlist="test/myclasses.txt" --time-limit=4
Note: If trying to replicate this error on Linux, you may need to edit some of the above commands. Notably, please change the ";" to ":"
This was the output I generated:
Obviously, I don't think Randoop should be generating uncompilable sequences here. Additionally, I was able to print out why some of the sequences being generated were uncompilable and this was the output for one of those sequences:
Thanks!
The text was updated successfully, but these errors were encountered: