diff --git a/tests/org.pitest.pitclipse.ui.tests/old-cucumber/j06_mutations_view.feature b/tests/org.pitest.pitclipse.ui.tests/old-cucumber/j06_mutations_view.feature index 5a248edd..e81b8cd1 100644 --- a/tests/org.pitest.pitclipse.ui.tests/old-cucumber/j06_mutations_view.feature +++ b/tests/org.pitest.pitclipse.ui.tests/old-cucumber/j06_mutations_view.feature @@ -13,8 +13,8 @@ Feature: Mutation view shows analysis results Then a coverage report is generated with 2 classes tested with overall coverage of 80% and mutation coverage of 0% And the mutation results are | status | project | package | class | line | mutation | - | SURVIVED | project1 | foo.bar | foo.bar.Bar | 9 | negated conditional | - | SURVIVED | project1 | foo.bar | foo.bar.Foo | 9 | negated conditional | + | SURVIVED | project1 | foo.bar | foo.bar.Bar | 9 | removed conditional - replaced equality check with false | + | SURVIVED | project1 | foo.bar | foo.bar.Foo | 9 | removed conditional - replaced equality check with false | | NO_COVERAGE | project1 | foo.bar | foo.bar.Bar | 10 | Replaced integer addition with subtraction | | NO_COVERAGE | project1 | foo.bar | foo.bar.Bar | 10 | replaced int return with 0 for foo/bar/Bar::f | | NO_COVERAGE | project1 | foo.bar | foo.bar.Foo | 10 | Replaced integer addition with subtraction | @@ -23,7 +23,7 @@ Feature: Mutation view shows analysis results Scenario: Selecting a mutation opens the class in question at the right line number When the following mutation is selected | status | project | package | class | line | mutation | - | SURVIVED | project1 | foo.bar | foo.bar.Foo | 9 | negated conditional | + | SURVIVED | project1 | foo.bar | foo.bar.Foo | 9 | removed conditional - replaced equality check with false | Then the file "Foo.java" is opened at line number 9 Scenario: Using the stronger mutators yields more mutation results @@ -32,10 +32,10 @@ Feature: Mutation view shows analysis results Then a coverage report is generated with 2 classes tested with overall coverage of 80% and mutation coverage of 0% And the mutation results are | status | project | package | class | line | mutation | - | SURVIVED | project1 | foo.bar | foo.bar.Bar | 9 | negated conditional | | SURVIVED | project1 | foo.bar | foo.bar.Bar | 9 | removed conditional - replaced equality check with false | - | SURVIVED | project1 | foo.bar | foo.bar.Foo | 9 | negated conditional | + | SURVIVED | project1 | foo.bar | foo.bar.Bar | 9 | removed conditional - replaced equality check with true | | SURVIVED | project1 | foo.bar | foo.bar.Foo | 9 | removed conditional - replaced equality check with false | + | SURVIVED | project1 | foo.bar | foo.bar.Foo | 9 | removed conditional - replaced equality check with true | | NO_COVERAGE | project1 | foo.bar | foo.bar.Bar | 10 | Replaced integer addition with subtraction | | NO_COVERAGE | project1 | foo.bar | foo.bar.Bar | 10 | replaced int return with 0 for foo/bar/Bar::f | | NO_COVERAGE | project1 | foo.bar | foo.bar.Foo | 10 | Replaced integer addition with subtraction | @@ -52,14 +52,14 @@ Feature: Mutation view shows analysis results # And the mutation results are # | status | project | package | class | line | mutation | # | SURVIVED | project1 | foo.bar | foo.bar.Bar | 9 | Substituted 1 with 0 | -# | SURVIVED | project1 | foo.bar | foo.bar.Bar | 9 | negated conditional | +# | SURVIVED | project1 | foo.bar | foo.bar.Bar | 9 | removed conditional - replaced equality check with false | # | SURVIVED | project1 | foo.bar | foo.bar.Bar | 9 | removed call to java/util/ArrayList::size | # | SURVIVED | project1 | foo.bar | foo.bar.Bar | 9 | removed conditional - replaced equality check with false | # | SURVIVED | project1 | foo.bar | foo.bar.Bar | 9 | removed conditional - replaced equality check with true | # | SURVIVED | project1 | foo.bar | foo.bar.Bar | 12 | Substituted 0 with 1 | # | SURVIVED | project1 | foo.bar | foo.bar.Bar | 12 | replaced return of integer sized value with (x == 0 ? 1 : 0) | # | SURVIVED | project1 | foo.bar | foo.bar.Foo | 9 | Substituted 1 with 0 | -# | SURVIVED | project1 | foo.bar | foo.bar.Foo | 9 | negated conditional | +# | SURVIVED | project1 | foo.bar | foo.bar.Foo | 9 | removed conditional - replaced equality check with false | # | SURVIVED | project1 | foo.bar | foo.bar.Foo | 9 | removed call to java/util/ArrayList::size | # | SURVIVED | project1 | foo.bar | foo.bar.Foo | 9 | removed conditional - replaced equality check with false | # | SURVIVED | project1 | foo.bar | foo.bar.Foo | 9 | removed conditional - replaced equality check with true | diff --git a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/NoTestsFoundDialog.java b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/NoTestsFoundDialog.java index cb85606b..58b53042 100644 --- a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/NoTestsFoundDialog.java +++ b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/NoTestsFoundDialog.java @@ -31,9 +31,7 @@ public NoTestsFoundDialog(SWTWorkbenchBot bot) { public void assertAppears() { SWTBotShell shell = bot.shell("Pitclipse"); shell.activate(); - bot.waitUntil(new DurationElapsed(500)); bot.label("No tests found"); - bot.waitUntil(new DurationElapsed(500)); bot.button("OK").click(); bot.waitUntil(Conditions.shellCloses(shell)); diff --git a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/RunConfigurationSelector.java b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/RunConfigurationSelector.java index 218514ee..7f9d71a4 100644 --- a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/RunConfigurationSelector.java +++ b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/RunConfigurationSelector.java @@ -29,6 +29,7 @@ import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot; import org.eclipse.swtbot.swt.finder.waits.Conditions; import org.eclipse.swtbot.swt.finder.widgets.SWTBotButton; +import org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu; import org.eclipse.swtbot.swt.finder.widgets.SWTBotRadio; import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell; import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable; @@ -144,6 +145,7 @@ private void activateConfigurationTab(String configurationName, String name) { } public void createRunConfiguration(String configurationName, String projectName, String className) { + System.out.println("RunConfigurationSelector.createRunConfiguration()"); getPitConfigurationItem().contextMenu("New Configuration").click(); bot.textWithLabel("Name:").setText(configurationName); PitRunConfiguration config = new Builder().withName(configurationName).withProjects(projectName) diff --git a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/RunMenu.java b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/RunMenu.java index bf7efba8..45f7b5c5 100644 --- a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/RunMenu.java +++ b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/RunMenu.java @@ -70,6 +70,7 @@ public List runConfigurations() { public void createRunConfiguration(String configurationName, String projectName, String className) { try (RunConfigurationSelector selector = openRunMenu().andThen()) { + System.out.println("RunMenu.createRunConfiguration()"); selector.createRunConfiguration(configurationName, projectName, className); } } diff --git a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipseOptionsTest.java b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipseOptionsTest.java index 2e10a76e..f4016f66 100644 --- a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipseOptionsTest.java +++ b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipseOptionsTest.java @@ -69,34 +69,13 @@ public void defaultOptions() { selector.close(); } - @Test - public void useOldDefaultsMutators() throws CoreException { - // set OLD_DEFAULTS mutators - PAGES.getWindowsMenu().setMutatorGroup(Mutators.OLD_DEFAULTS); - try { - runPackageTest(FOO_BAR_PACKAGE, TEST_PROJECT); - coverageReportGenerated(2, 80, 0, 8, 0); - mutationsAre( "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 7 | negated conditional\n" + - "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 10 | replaced return of integer sized value with (x == 0 ? 1 : 0)\n" + - "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | negated conditional\n" + - "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 10 | replaced return of integer sized value with (x == 0 ? 1 : 0)\n" + - "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 8 | Replaced integer addition with subtraction\n" + - "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 8 | replaced return of integer sized value with (x == 0 ? 1 : 0)\n" + - "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 8 | Replaced integer addition with subtraction\n" + - "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 8 | replaced return of integer sized value with (x == 0 ? 1 : 0)"); - } finally { - // it's crucial to reset it to the default or we break other tests - PAGES.getWindowsMenu().setMutatorGroup(Mutators.DEFAULTS); - } - } - @Test public void useDefaultMutators() throws CoreException { runPackageTest(FOO_BAR_PACKAGE, TEST_PROJECT); coverageReportGenerated(2, 80, 0, 6, 0); mutationsAre( - "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 7 | negated conditional\n" + - "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | negated conditional\n" + + "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 7 | removed conditional - replaced equality check with false\n" + + "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | removed conditional - replaced equality check with false\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 8 | Replaced integer addition with subtraction\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 8 | replaced int return with 0 for foo/bar/Bar::f\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 8 | Replaced integer addition with subtraction\n" + @@ -111,10 +90,10 @@ public void useStrongerMutators() throws CoreException { runPackageTest(FOO_BAR_PACKAGE, TEST_PROJECT); coverageReportGenerated(2, 80, 0, 8, 0); mutationsAre( - "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 7 | negated conditional\n" + "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 7 | removed conditional - replaced equality check with false\n" + - "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | negated conditional\n" + + "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 7 | removed conditional - replaced equality check with true\n" + "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | removed conditional - replaced equality check with false\n" + + "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | removed conditional - replaced equality check with true\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 8 | Replaced integer addition with subtraction\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 8 | replaced int return with 0 for foo/bar/Bar::f\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 8 | Replaced integer addition with subtraction\n" + @@ -188,7 +167,7 @@ public void launchConfigWithTargetClass() { // NOSONAR // run test and confirm result is as expected PAGES.getRunMenu().runPitWithConfiguration(TEST_CONFIG_NAME); coverageReportGenerated(1, 80, 0, 3, 0); - mutationsAre( "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | negated conditional\n" + + mutationsAre( "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | removed conditional - replaced equality check with false\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 8 | Replaced integer addition with subtraction\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 8 | replaced int return with 0 for foo/bar/Foo::f"); } diff --git a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipseRunConfigurationMutationTabTest.java b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipseRunConfigurationMutationTabTest.java index 06d373db..877477cc 100644 --- a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipseRunConfigurationMutationTabTest.java +++ b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipseRunConfigurationMutationTabTest.java @@ -80,23 +80,6 @@ public void selectNoMutator() { // NOSONAR "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 7 | negated conditional"); } - @Test - public void useOldDefaultsMutatorsGroup() { // NOSONAR - // set OLD_DEFAULTS mutators - PAGES.getRunMenu().setMutatorGroup(TEST_CONFIG_NAME, Mutators.OLD_DEFAULTS); - // run test and confirm result is as expected - PAGES.getRunMenu().runPitWithConfiguration(TEST_CONFIG_NAME); - coverageReportGenerated(TESTED_CLASSES, COVERAGE, 0, 8, 0); - mutationsAre( "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | negated conditional\n" + - "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 10 | replaced return of integer sized value with (x == 0 ? 1 : 0)\n" + - "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 7 | negated conditional\n" + - "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 8 | Replaced integer addition with subtraction\n" + - "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 8 | replaced return of integer sized value with (x == 0 ? 1 : 0)\n" + - "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 10 | replaced return of integer sized value with (x == 0 ? 1 : 0)\n" + - "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 8 | Replaced integer addition with subtraction\n" + - "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 8 | replaced return of integer sized value with (x == 0 ? 1 : 0)"); - } - @Test public void useDefaultMutatorsGroup() { // NOSONAR // set DEFAULTS mutators @@ -104,8 +87,8 @@ public void useDefaultMutatorsGroup() { // NOSONAR // run test and confirm result is as expected PAGES.getRunMenu().runPitWithConfiguration(TEST_CONFIG_NAME); coverageReportGenerated(TESTED_CLASSES, COVERAGE, 0, 6, 0); - mutationsAre( "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | negated conditional\n" + - "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 7 | negated conditional\n" + + mutationsAre( "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | removed conditional - replaced equality check with false\n" + + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 7 | removed conditional - replaced equality check with false\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 8 | Replaced integer addition with subtraction\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 8 | replaced int return with 0 for foo/bar/Bar::f\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 8 | Replaced integer addition with subtraction\n" + @@ -119,10 +102,10 @@ public void useStrongerMutatorsGroup() { // NOSONAR // run test and confirm result is as expected PAGES.getRunMenu().runPitWithConfiguration(TEST_CONFIG_NAME); coverageReportGenerated(TESTED_CLASSES, COVERAGE, 0, 8, 0); - mutationsAre( "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | negated conditional\n" + - "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | removed conditional - replaced equality check with false\n" + - "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 7 | negated conditional\n" + + mutationsAre( "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | removed conditional - replaced equality check with false\n" + + "SURVIVED | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 7 | removed conditional - replaced equality check with true\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 7 | removed conditional - replaced equality check with false\n" + + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 7 | removed conditional - replaced equality check with true\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 8 | Replaced integer addition with subtraction\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Bar | 8 | replaced int return with 0 for foo/bar/Bar::f\n" + "NO_COVERAGE | " + TEST_PROJECT + " | foo.bar | foo.bar.Foo | 8 | Replaced integer addition with subtraction\n" + @@ -150,7 +133,7 @@ public void useAllMutatorsGroup() { // NOSONAR PAGES.getRunMenu().setMutatorGroup(TEST_CONFIG_NAME, Mutators.ALL); // run test and confirm result is as expected PAGES.getRunMenu().runPitWithConfiguration(TEST_CONFIG_NAME); - coverageReportGenerated(TESTED_CLASSES, COVERAGE, 1, 84, 1); + coverageReportGenerated(TESTED_CLASSES, COVERAGE, 5, 20, 1); mutationsAre(getAllMutantsResult()); } @@ -162,94 +145,31 @@ public void checkAllMutants() { // NOSONAR PAGES.getRunMenu().checkAllMutators(TEST_CONFIG_NAME); // run test and confirm result is as expected PAGES.getRunMenu().runPitWithConfiguration(TEST_CONFIG_NAME); - coverageReportGenerated(TESTED_CLASSES, COVERAGE, 1, 84, 1); + coverageReportGenerated(TESTED_CLASSES, COVERAGE, 5, 20, 1); mutationsAre(getAllMutantsResult()); } private String getAllMutantsResult(){ - return "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | Substituted 1 with -1\n" + - "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | Substituted 1 with -1\n" + - "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | Substituted 1 with 0\n" + + return "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | Substituted 1 with 0\n" + - "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | Substituted 1 with 0\n" + - "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | Substituted 1 with 2\n" + "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | negated conditional\n" + - "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | not equal to equal\n" + - "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | not equal to greater or equal\n" + - "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | not equal to greater than\n" + - "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | not equal to less or equal\n" + - "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | not equal to less than\n" + "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | removed call to java/util/ArrayList::size\n" + "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | removed conditional - replaced equality check with false\n" + "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 7 | removed conditional - replaced equality check with true\n" + - "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 10 | Substituted 0 with -1\n" + - "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 10 | Substituted 0 with -1\n" + - "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 10 | Substituted 0 with 1\n" + "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 10 | Substituted 0 with 1\n" + - "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 10 | Substituted 0 with 1\n" + - "SURVIVED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 10 | replaced return of integer sized value with (x == 0 ? 1 : 0)\n" + "KILLED | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 6 | removed call to java/util/ArrayList::\n" + "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 6 | removed call to java/util/ArrayList::\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | Substituted 1 with -1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | Substituted 1 with -1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | Substituted 1 with 0\n" + "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | Substituted 1 with 0\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | Substituted 1 with 0\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | Substituted 1 with 2\n" + "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | negated conditional\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | not equal to equal\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | not equal to greater or equal\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | not equal to greater than\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | not equal to less or equal\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | not equal to less than\n" + "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | removed call to java/util/ArrayList::size\n" + "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | removed conditional - replaced equality check with false\n" + "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 7 | removed conditional - replaced equality check with true\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Decremented (--a) integer local variable number 1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Decremented (a--) integer local variable number 1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Incremented (++a) integer local variable number 1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Incremented (a++) integer local variable number 1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Negated integer local variable number 1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Replaced integer addition with division\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Replaced integer addition with modulus\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Replaced integer addition with multiplication\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Replaced integer addition with subtraction\n" + "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Replaced integer addition with subtraction\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Replaced integer operation by second member\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Replaced integer operation with first member\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Substituted 1 with -1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Substituted 1 with -1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Substituted 1 with 0\n" + "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Substituted 1 with 0\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Substituted 1 with 0\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | Substituted 1 with 2\n" + "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | replaced int return with 0 for foo/bar/Bar::f\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 8 | replaced return of integer sized value with (x == 0 ? 1 : 0)\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 10 | Substituted 0 with -1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 10 | Substituted 0 with -1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 10 | Substituted 0 with 1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 10 | Substituted 0 with 1\n" + "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 10 | Substituted 0 with 1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Bar | 10 | replaced return of integer sized value with (x == 0 ? 1 : 0)\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Decremented (--a) integer local variable number 1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Decremented (a--) integer local variable number 1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Incremented (++a) integer local variable number 1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Incremented (a++) integer local variable number 1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Negated integer local variable number 1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Replaced integer addition with division\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Replaced integer addition with modulus\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Replaced integer addition with multiplication\n" + "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Replaced integer addition with subtraction\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Replaced integer addition with subtraction\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Replaced integer operation by second member\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Replaced integer operation with first member\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Substituted 1 with -1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Substituted 1 with -1\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Substituted 1 with 0\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Substituted 1 with 0\n" + "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Substituted 1 with 0\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | Substituted 1 with 2\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | replaced int return with 0 for foo/bar/Foo::f\n" + - "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | replaced return of integer sized value with (x == 0 ? 1 : 0)"; + "NO_COVERAGE | " + TEST_PROJECT + " |foo.bar | foo.bar.Foo | 8 | replaced int return with 0 for foo/bar/Foo::f\n"; } } diff --git a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipseUiRunnerTest.java b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipseUiRunnerTest.java index 229f3346..8a2a668d 100644 --- a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipseUiRunnerTest.java +++ b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/tests/PitclipseUiRunnerTest.java @@ -218,7 +218,7 @@ public void multipleLaunchConfigurations() throws CoreException { .choose(FOO_TEST_CLASS_MULTIPLE_LAUNCHES + " (All Mutators)")); // not just 2 mutants, but much more since in this launch // we enabled All Mutators - coverageReportGenerated(1, 0, 0, 20, 0); + coverageReportGenerated(1, 0, 0, 3, 0); @SuppressWarnings("serial") class MyException extends RuntimeException {