Pitest Report Failed to Generated In Intellij IDEA












0















I am using Pitest for mutation testing in IntelliJ IDEA (plugin: https://plugins.jetbrains.com/plugin/7119-pit-mutation-testing-idea-plugin). After running all test case, I got the following message at the end of execution:




Exception in thread "main" org.pitest.help.PitHelpError: All tests
did not pass without mutation when calculating line coverage. Mutation
testing requires a green suite. See http://pitest.org for more
details.
at
org.pitest.coverage.execute.DefaultCoverageGenerator.verifyBuildSuitableForMutationTesting(DefaultCoverageGenerator.java:109)
at
org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:94)
at
org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:49)
at
org.pitest.mutationtest.tooling.MutationCoverage.runReport(MutationCoverage.java:115)
at
org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:117)
at
org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:49)
at
org.pitest.mutationtest.commandline.MutationCoverageReport.runReport(MutationCoverageReport.java:87)
at
org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:45)



Process finished with exit code 1 Open report in browser




I cannot open the report in the browser because the file is not generated.



I already edit the Pitest configuration:



Report dir : /Users/me/reports/pit
Other params : --outputFormats XML,HTML


Did I miss something?



Thanks










share|improve this question



























    0















    I am using Pitest for mutation testing in IntelliJ IDEA (plugin: https://plugins.jetbrains.com/plugin/7119-pit-mutation-testing-idea-plugin). After running all test case, I got the following message at the end of execution:




    Exception in thread "main" org.pitest.help.PitHelpError: All tests
    did not pass without mutation when calculating line coverage. Mutation
    testing requires a green suite. See http://pitest.org for more
    details.
    at
    org.pitest.coverage.execute.DefaultCoverageGenerator.verifyBuildSuitableForMutationTesting(DefaultCoverageGenerator.java:109)
    at
    org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:94)
    at
    org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:49)
    at
    org.pitest.mutationtest.tooling.MutationCoverage.runReport(MutationCoverage.java:115)
    at
    org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:117)
    at
    org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:49)
    at
    org.pitest.mutationtest.commandline.MutationCoverageReport.runReport(MutationCoverageReport.java:87)
    at
    org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:45)



    Process finished with exit code 1 Open report in browser




    I cannot open the report in the browser because the file is not generated.



    I already edit the Pitest configuration:



    Report dir : /Users/me/reports/pit
    Other params : --outputFormats XML,HTML


    Did I miss something?



    Thanks










    share|improve this question

























      0












      0








      0








      I am using Pitest for mutation testing in IntelliJ IDEA (plugin: https://plugins.jetbrains.com/plugin/7119-pit-mutation-testing-idea-plugin). After running all test case, I got the following message at the end of execution:




      Exception in thread "main" org.pitest.help.PitHelpError: All tests
      did not pass without mutation when calculating line coverage. Mutation
      testing requires a green suite. See http://pitest.org for more
      details.
      at
      org.pitest.coverage.execute.DefaultCoverageGenerator.verifyBuildSuitableForMutationTesting(DefaultCoverageGenerator.java:109)
      at
      org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:94)
      at
      org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:49)
      at
      org.pitest.mutationtest.tooling.MutationCoverage.runReport(MutationCoverage.java:115)
      at
      org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:117)
      at
      org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:49)
      at
      org.pitest.mutationtest.commandline.MutationCoverageReport.runReport(MutationCoverageReport.java:87)
      at
      org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:45)



      Process finished with exit code 1 Open report in browser




      I cannot open the report in the browser because the file is not generated.



      I already edit the Pitest configuration:



      Report dir : /Users/me/reports/pit
      Other params : --outputFormats XML,HTML


      Did I miss something?



      Thanks










      share|improve this question














      I am using Pitest for mutation testing in IntelliJ IDEA (plugin: https://plugins.jetbrains.com/plugin/7119-pit-mutation-testing-idea-plugin). After running all test case, I got the following message at the end of execution:




      Exception in thread "main" org.pitest.help.PitHelpError: All tests
      did not pass without mutation when calculating line coverage. Mutation
      testing requires a green suite. See http://pitest.org for more
      details.
      at
      org.pitest.coverage.execute.DefaultCoverageGenerator.verifyBuildSuitableForMutationTesting(DefaultCoverageGenerator.java:109)
      at
      org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:94)
      at
      org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:49)
      at
      org.pitest.mutationtest.tooling.MutationCoverage.runReport(MutationCoverage.java:115)
      at
      org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:117)
      at
      org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:49)
      at
      org.pitest.mutationtest.commandline.MutationCoverageReport.runReport(MutationCoverageReport.java:87)
      at
      org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:45)



      Process finished with exit code 1 Open report in browser




      I cannot open the report in the browser because the file is not generated.



      I already edit the Pitest configuration:



      Report dir : /Users/me/reports/pit
      Other params : --outputFormats XML,HTML


      Did I miss something?



      Thanks







      java intellij-idea mutation-testing pitest






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 20 at 10:07









      riluthamrilutham

      39138




      39138
























          1 Answer
          1






          active

          oldest

          votes


















          0














          As the message says mutation testing requires a green test suite: you cannot mutation test if some of your tests are failing.



          So either some of your tests fail when you run them, or you have encountered an issue where the tests run green normally but fail when run by pitest.



          Common causes of tests failing for pitest are mentioned in the faq




          Most commonly this is because either :




          • PIT is picking up tests that are not included/are excluded in the normal test config


          • Some test rely on an environment variable or other property set in the test config, but not set in the pitest config


          • The tests have a hidden order dependency that is not revealed during the normal test run








          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54275370%2fpitest-report-failed-to-generated-in-intellij-idea%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            As the message says mutation testing requires a green test suite: you cannot mutation test if some of your tests are failing.



            So either some of your tests fail when you run them, or you have encountered an issue where the tests run green normally but fail when run by pitest.



            Common causes of tests failing for pitest are mentioned in the faq




            Most commonly this is because either :




            • PIT is picking up tests that are not included/are excluded in the normal test config


            • Some test rely on an environment variable or other property set in the test config, but not set in the pitest config


            • The tests have a hidden order dependency that is not revealed during the normal test run








            share|improve this answer




























              0














              As the message says mutation testing requires a green test suite: you cannot mutation test if some of your tests are failing.



              So either some of your tests fail when you run them, or you have encountered an issue where the tests run green normally but fail when run by pitest.



              Common causes of tests failing for pitest are mentioned in the faq




              Most commonly this is because either :




              • PIT is picking up tests that are not included/are excluded in the normal test config


              • Some test rely on an environment variable or other property set in the test config, but not set in the pitest config


              • The tests have a hidden order dependency that is not revealed during the normal test run








              share|improve this answer


























                0












                0








                0







                As the message says mutation testing requires a green test suite: you cannot mutation test if some of your tests are failing.



                So either some of your tests fail when you run them, or you have encountered an issue where the tests run green normally but fail when run by pitest.



                Common causes of tests failing for pitest are mentioned in the faq




                Most commonly this is because either :




                • PIT is picking up tests that are not included/are excluded in the normal test config


                • Some test rely on an environment variable or other property set in the test config, but not set in the pitest config


                • The tests have a hidden order dependency that is not revealed during the normal test run








                share|improve this answer













                As the message says mutation testing requires a green test suite: you cannot mutation test if some of your tests are failing.



                So either some of your tests fail when you run them, or you have encountered an issue where the tests run green normally but fail when run by pitest.



                Common causes of tests failing for pitest are mentioned in the faq




                Most commonly this is because either :




                • PIT is picking up tests that are not included/are excluded in the normal test config


                • Some test rely on an environment variable or other property set in the test config, but not set in the pitest config


                • The tests have a hidden order dependency that is not revealed during the normal test run









                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 22 at 15:49









                henryhenry

                3,7991631




                3,7991631
































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54275370%2fpitest-report-failed-to-generated-in-intellij-idea%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Homophylophilia

                    Updating UILabel text programmatically using a function

                    Cloud Functions - OpenCV Videocapture Read method fails for larger files from cloud storage