Search in sources :

Example 6 with TestCompiler

use of eu.stamp_project.dspot.common.compilation.TestCompiler in project dspot by STAMP-project.

the class AssertionGeneratorTest method setUp.

@Before
@Override
public void setUp() {
    TestCompiler.setTimeoutInMs(10000);
    this.classpathClassesProject = configuration.getClasspathClassesProject();
    this.compiler = DSpotCompiler.createDSpotCompiler(configuration, dependencies);
    RandomHelper.setSeedRandom(72L);
    ValueCreator.count = 0;
    testCompiler = new TestCompiler(0, false, configuration.getAbsolutePathToProjectRoot(), configuration.getClasspathClassesProject(), 10000, "", false);
    this.assertionGenerator = new AssertionGenerator(0.1D, compiler, testCompiler, false);
    DSpotUtils.init(CommentEnum.None, "target/dspot/", configuration.getFullClassPathWithExtraDependencies(), "src/test/resources/sample/");
    super.setUp();
}
Also used : TestCompiler(eu.stamp_project.dspot.common.compilation.TestCompiler) Before(org.junit.Before)

Example 7 with TestCompiler

use of eu.stamp_project.dspot.common.compilation.TestCompiler in project dspot by STAMP-project.

the class RecoveryDSpotTest method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    DSpotState.GLOBAL_REPORT.reset();
    configuration = new UserInput();
    configuration.setAbsolutePathToProjectRoot(this.getPathToProjectRoot());
    this.builder = AutomaticBuilderEnum.Maven.getAutomaticBuilder(configuration);
    this.testCompiler = new TestCompiler(0, false, configuration.getAbsolutePathToProjectRoot(), configuration.getClasspathClassesProject(), 10000, "", false);
}
Also used : TestCompiler(eu.stamp_project.dspot.common.compilation.TestCompiler) UserInput(eu.stamp_project.dspot.common.configuration.UserInput) Before(org.junit.Before)

Aggregations

TestCompiler (eu.stamp_project.dspot.common.compilation.TestCompiler)7 Before (org.junit.Before)6 UserInput (eu.stamp_project.dspot.common.configuration.UserInput)5 InitializeDSpot (eu.stamp_project.dspot.common.configuration.InitializeDSpot)4 Launcher (spoon.Launcher)4 AssertionGenerator (eu.stamp_project.dspot.assertiongenerator.AssertionGenerator)2 TestFinder (eu.stamp_project.dspot.common.configuration.test_finder.TestFinder)2 Output (eu.stamp_project.dspot.common.report.output.Output)2 JacocoCoverageSelector (eu.stamp_project.dspot.selector.JacocoCoverageSelector)2 Gson (com.google.gson.Gson)1 GsonBuilder (com.google.gson.GsonBuilder)1 InputAmplDistributor (eu.stamp_project.dspot.amplifier.InputAmplDistributor)1 Amplifier (eu.stamp_project.dspot.amplifier.amplifiers.Amplifier)1 RandomHelper (eu.stamp_project.dspot.amplifier.amplifiers.utils.RandomHelper)1 ValueCreator (eu.stamp_project.dspot.amplifier.amplifiers.value.ValueCreator)1 AssertionGeneratorUtils (eu.stamp_project.dspot.assertiongenerator.assertiongenerator.AssertionGeneratorUtils)1 AutomaticBuilder (eu.stamp_project.dspot.common.automaticbuilder.AutomaticBuilder)1 DSpotPOMCreator (eu.stamp_project.dspot.common.automaticbuilder.maven.DSpotPOMCreator)1 EmailSender (eu.stamp_project.dspot.common.collector.smtp.EmailSender)1 DSpotCompiler (eu.stamp_project.dspot.common.compilation.DSpotCompiler)1