deployment using change set- run specified test

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite












Hi i have a changeset which has 2 apex class and their test classes with 65% and 80% individually test coverage, if i choose a option of run specified test, will that be deployed? Because one of apex class is having 65%, do it require 75% for individual components?










share|improve this question



























    up vote
    1
    down vote

    favorite












    Hi i have a changeset which has 2 apex class and their test classes with 65% and 80% individually test coverage, if i choose a option of run specified test, will that be deployed? Because one of apex class is having 65%, do it require 75% for individual components?










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Hi i have a changeset which has 2 apex class and their test classes with 65% and 80% individually test coverage, if i choose a option of run specified test, will that be deployed? Because one of apex class is having 65%, do it require 75% for individual components?










      share|improve this question













      Hi i have a changeset which has 2 apex class and their test classes with 65% and 80% individually test coverage, if i choose a option of run specified test, will that be deployed? Because one of apex class is having 65%, do it require 75% for individual components?







      apex unit-test code-coverage change-set






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 59 mins ago









      Vivian

      63




      63




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          No, it will not deploy. If you choose a test level of less than RunLocalTests, each unit will be required to achieve 75% coverage each, regardless of the average. Either run all tests, or fix the tests so the 65% coverage file achieves at least 75%. This in the release notes and documentation:




          When running a subset of tests, code coverage is computed for each class and trigger individually and is different than the overall coverage percentage. If your deployment package contains Apex classes and triggers, the executed tests must cover each class and trigger for a minimum of 75% code coverage. --Emphasis mine







          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "459"
            ;
            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f235901%2fdeployment-using-change-set-run-specified-test%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            No, it will not deploy. If you choose a test level of less than RunLocalTests, each unit will be required to achieve 75% coverage each, regardless of the average. Either run all tests, or fix the tests so the 65% coverage file achieves at least 75%. This in the release notes and documentation:




            When running a subset of tests, code coverage is computed for each class and trigger individually and is different than the overall coverage percentage. If your deployment package contains Apex classes and triggers, the executed tests must cover each class and trigger for a minimum of 75% code coverage. --Emphasis mine







            share|improve this answer
























              up vote
              2
              down vote













              No, it will not deploy. If you choose a test level of less than RunLocalTests, each unit will be required to achieve 75% coverage each, regardless of the average. Either run all tests, or fix the tests so the 65% coverage file achieves at least 75%. This in the release notes and documentation:




              When running a subset of tests, code coverage is computed for each class and trigger individually and is different than the overall coverage percentage. If your deployment package contains Apex classes and triggers, the executed tests must cover each class and trigger for a minimum of 75% code coverage. --Emphasis mine







              share|improve this answer






















                up vote
                2
                down vote










                up vote
                2
                down vote









                No, it will not deploy. If you choose a test level of less than RunLocalTests, each unit will be required to achieve 75% coverage each, regardless of the average. Either run all tests, or fix the tests so the 65% coverage file achieves at least 75%. This in the release notes and documentation:




                When running a subset of tests, code coverage is computed for each class and trigger individually and is different than the overall coverage percentage. If your deployment package contains Apex classes and triggers, the executed tests must cover each class and trigger for a minimum of 75% code coverage. --Emphasis mine







                share|improve this answer












                No, it will not deploy. If you choose a test level of less than RunLocalTests, each unit will be required to achieve 75% coverage each, regardless of the average. Either run all tests, or fix the tests so the 65% coverage file achieves at least 75%. This in the release notes and documentation:




                When running a subset of tests, code coverage is computed for each class and trigger individually and is different than the overall coverage percentage. If your deployment package contains Apex classes and triggers, the executed tests must cover each class and trigger for a minimum of 75% code coverage. --Emphasis mine








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 54 mins ago









                sfdcfox

                232k10179395




                232k10179395



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f235901%2fdeployment-using-change-set-run-specified-test%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    What does second last employer means? [closed]

                    List of Gilmore Girls characters

                    Confectionery