Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review final #9

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
4f15a9b
Template cleanup
actions-user Sep 23, 2020
d369848
Add randoop and update config
DmitryPogrebnoy Sep 27, 2020
56bfffb
Add custom Randoop that also generates modified tests
FemiLame Oct 1, 2020
a7a2d3d
Add Randoop sources with little modifications
FemiLame Oct 9, 2020
53dd134
Add simple plugin logic to run Randoop
FemiLame Oct 28, 2020
bab9bfe
Init project and add parser that collects values for fuzzing
FemiLame Nov 12, 2020
8b80ca6
Fix collecting values from non-testing methods
FemiLame Nov 12, 2020
6dbdec5
Add real test cases
FemiLame Nov 12, 2020
300c46e
Fix collecting values from not our CUT constructors
FemiLame Nov 17, 2020
9302150
Set up logging
FemiLame Nov 18, 2020
499f83a
Implement TestGenerator interface for Randoop
FemiLame Nov 28, 2020
58393d5
Implement TestGenerator interface for Evosuite
FemiLame Nov 28, 2020
1162cbd
Some fixes
FemiLame Dec 2, 2020
cf45ab5
Add Randoop and EvoSuite jar files
FemiLame Dec 2, 2020
09aa5c0
Start JQF+Zest integration
FemiLame Dec 2, 2020
4697458
Update build file and fix "SLF4J: Class path contains multiple SLF4J …
FemiLame Dec 6, 2020
4087269
Refactor SeedFinder
FemiLame Dec 7, 2020
e2f70c2
Add calls of testing class in methodToFuzz to allow ZQF+Zest calculat…
FemiLame Dec 8, 2020
e29ae35
Modify FileToFuzz construction
FemiLame Dec 9, 2020
a9dcb95
Intermediate results
FemiLame Dec 21, 2020
5cf67e5
Update saving generated values from JQFZestFuzzer, fix dir creation i…
FemiLame Dec 25, 2020
bf87d2d
Refactor SeedFinder getSeeds() to return only map with list of seeds …
FemiLame Dec 25, 2020
ae9d19f
Replace values in original test with generated ones, move clone from …
FemiLame Dec 30, 2020
aca085d
Start modifying asserts, refactor test parsing and util functions
FemiLame Jan 12, 2021
290b915
Fix reading regression values, update assert finding
FemiLame Jan 13, 2021
f795e0f
Add new assert construction and creation of file with original and mo…
FemiLame Jan 22, 2021
93469f9
Intermediate refactoring to run in junit contest
FemiLame Feb 12, 2021
c64fb7d
Refactor to run in competition infrastructure
FemiLame Mar 4, 2021
35755ad
Add tool to run in competition infrastructure
FemiLame Mar 4, 2021
63f7fda
Add timeouts
FemiLame Mar 6, 2021
b65b1f2
Add a test for each file from fuzzer, fix added method naming
FemiLame Mar 13, 2021
fcb85d9
Add runtool for EvoSuite
FemiLame Mar 20, 2021
65ed8ee
Move generation tests into testing class's package, add a flag to cho…
FemiLame Mar 29, 2021
988e46d
Add choosing of methods to fuzz, update time budgets
FemiLame Apr 7, 2021
0e26f5e
Update method choosing, some bug fixes
FemiLame Apr 17, 2021
39dcd5c
Put each test in a separate file, fix imports
FemiLame Apr 26, 2021
6b9583b
Minor fixes
FemiLame Apr 29, 2021
69e1cc6
Refactoring and small bug fixes
FemiLame May 15, 2021
0e5c3e8
Merge branch 'main' into review-final
PolyProgrammist Oct 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,29 @@ public void run(String cName, long timeBudget) {
StringBuffer cmdLine = new StringBuffer();

String javaCommand = buildJavaCommand();
cmdLine.append(String.format("%s -jar %s -class %s -projectCP %s -Dsearch_budget=%s -Dtest_dir=%s ", javaCommand, evosuiteJarFilename, cName, classPath, Math.round(timeBudget * 0.5), junitOutputDirName));

cmdLine.append(String.format("%s -jar %s -class %s -projectCP %s -Dsearch_budget=%s -Dtest_dir=%s ", javaCommand, evosuiteJarFilename, cName, classPath, timeBudget, junitOutputDirName));

final String regressionTestFileName;
regressionTestFileName = String.join(File.separator, junitOutputDirName, "RegressionTest.java");
//todo: fix packages
// if (junitPackageName != null) {
// cmdLine.append(String.format("--junit-package-name=%s ", junitPackageName));
//
// regressionTestFileName = String.join(File.separator, junitOutputDirName,
// junitPackageName.replace(".", File.separator), "RegressionTest.java");
// } else {
regressionTestFileName = String.join(File.separator, junitOutputDirName, "RegressionTest.java");
// }
//
// cmdLine.append("--clear=10000 ");
// cmdLine.append("--string-maxlen=5000 ");
// cmdLine.append("--forbid-null=false ");
// cmdLine.append("--null-ratio=0.1 ");
// cmdLine.append("--no-error-revealing-tests=true ");
// cmdLine.append("--omitmethods=random ");
// cmdLine.append("--silently-ignore-bad-class-names=true ");
// cmdLine.append("--testsperfile=100 ");
// cmdLine.append("--ignore-flaky-tests=true ");

String cmdToExecute = cmdLine.toString();

Expand Down