Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
llmhyy committed Sep 5, 2023
1 parent 2cf1e8e commit 79f34cd
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions shell/src/test/java/feature/regression/RegressionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

import org.evosuite.EvoSuite;
import org.evosuite.Properties;
import org.evosuite.Properties.Criterion;
import org.evosuite.Properties.StatisticsBackend;
import org.evosuite.Properties.Strategy;
import org.evosuite.regression.RegressionMeasure;
import org.evosuite.result.TestGenerationResult;
import org.evosuite.utils.MethodUtil;
import org.junit.Test;
Expand Down Expand Up @@ -39,14 +42,19 @@ public class RegressionTest extends TestUtility{

@Test
public void testBasicRulesObj() {
// Class<?> clazz = RegressionExample.class;
Class<?> clazz = RegressionExample.class;
// String targetClass = clazz.getCanonicalName();

String targetClass = "com.RegressionExample";

// Method method = clazz.getMethods()[0];
// Method method = TestUtility.getTargetMethod(methodName, clazz, parameterNum);
String methodName = "example123";
int parameterNum = 1;

Method method = TestUtility.getTargetMethod(methodName, clazz, parameterNum);

String targetMethod = method.getName() + MethodUtil.getSignature(method);

// Method method = clazz.getMethods()[0];
// String targetMethod = method.getName() + MethodUtil.getSignature(method);
String original = "D:\\workspace\\workspace-for-testing2\\original\\bin";
String regression = "D:\\workspace\\workspace-for-testing2\\regression\\bin";
Expand All @@ -56,9 +64,13 @@ public void testBasicRulesObj() {
// Properties.PORT = 8000;
Properties.CLIENT_ON_THREAD = true;
Properties.STATISTICS_BACKEND = StatisticsBackend.DEBUG;
Properties.CRITERION = new Criterion[] {Criterion.BRANCH};

Properties.TIMEOUT = 100;
Properties.TIMEOUT = 10;
Properties.INDIVIDUAL_LEGITIMIZATION_BUDGET = 10;
Properties.STRATEGY = Strategy.REGRESSION;
Properties.REGRESSION_FITNESS = RegressionMeasure.ALL_MEASURES;
Properties.ASSERTIONS = true;
// Properties.TIMELINE_INTERVAL = 3000;

int timeBudget = 10;
Expand Down

0 comments on commit 79f34cd

Please sign in to comment.