Search in sources :

Example 1 with StringLiteralAmplifier

use of fr.inria.diversify.dspot.amplifier.StringLiteralAmplifier in project dspot by STAMP-project.

the class PitScoreMutantSelectorDescartesTest method testPitDescartesMode.

@Test
public void testPitDescartesMode() throws Exception {
    /*
            weak contract: this test should not throw any exception and end properly
                the increase of the mutation score and the selection is delegated to dedicated test
                here we test that the descartes mode runs
         */
    assertFalse(PitMutantScoreSelector.descartesMode);
    PitMutantScoreSelector.descartesMode = true;
    PitMutantScoreSelector.pitVersion = "1.2.0";
    InputConfiguration configuration = new InputConfiguration("src/test/resources/test-projects/test-projects.properties");
    DSpot dspot = new DSpot(configuration, 1, Arrays.asList(new StringLiteralAmplifier(), new NumberLiteralAmplifier()), new PitMutantScoreSelector());
    dspot.amplifyTest("example.TestSuiteExample", Collections.singletonList("test2"));
    FileUtils.cleanDirectory(new File(configuration.getOutputDirectory()));
    assertTrue(PitMutantScoreSelector.descartesMode);
}
Also used : DSpot(fr.inria.diversify.dspot.DSpot) PitMutantScoreSelector(fr.inria.diversify.dspot.selector.PitMutantScoreSelector) StringLiteralAmplifier(fr.inria.diversify.dspot.amplifier.StringLiteralAmplifier) InputConfiguration(fr.inria.diversify.utils.sosiefier.InputConfiguration) NumberLiteralAmplifier(fr.inria.diversify.dspot.amplifier.NumberLiteralAmplifier) Test(org.junit.Test)

Aggregations

DSpot (fr.inria.diversify.dspot.DSpot)1 NumberLiteralAmplifier (fr.inria.diversify.dspot.amplifier.NumberLiteralAmplifier)1 StringLiteralAmplifier (fr.inria.diversify.dspot.amplifier.StringLiteralAmplifier)1 PitMutantScoreSelector (fr.inria.diversify.dspot.selector.PitMutantScoreSelector)1 InputConfiguration (fr.inria.diversify.utils.sosiefier.InputConfiguration)1 Test (org.junit.Test)1