Test classes pass in validation before deploy, but fail when i run them from “Apex Test Execution”

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












I have a few apex test class, that pass when i run them while deploying a change set, but when i run them from the setup, in "Apex Test Execution", they fail with the error MIXED_DML_OPERATION
(the reason this error pops is because we have a user workflow that does an unnecessary update)



Why the errors don't appear in deployment?










share|improve this question





























    up vote
    1
    down vote

    favorite












    I have a few apex test class, that pass when i run them while deploying a change set, but when i run them from the setup, in "Apex Test Execution", they fail with the error MIXED_DML_OPERATION
    (the reason this error pops is because we have a user workflow that does an unnecessary update)



    Why the errors don't appear in deployment?










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have a few apex test class, that pass when i run them while deploying a change set, but when i run them from the setup, in "Apex Test Execution", they fail with the error MIXED_DML_OPERATION
      (the reason this error pops is because we have a user workflow that does an unnecessary update)



      Why the errors don't appear in deployment?










      share|improve this question















      I have a few apex test class, that pass when i run them while deploying a change set, but when i run them from the setup, in "Apex Test Execution", they fail with the error MIXED_DML_OPERATION
      (the reason this error pops is because we have a user workflow that does an unnecessary update)



      Why the errors don't appear in deployment?







      failing-tests






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 1 hour ago









      Oleksandr Berehovskiy

      7,62011734




      7,62011734










      asked 1 hour ago









      Dana Griff

      464417




      464417




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          During deployment, Mixed DML operations checks are skipped. Here is a knowledge article regarding this: https://help.salesforce.com/articleView?id=000231160&type=1






          share|improve this answer
















          • 1




            Thanks a lot!!!
            – Dana Griff
            49 mins ago










          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%2f236458%2ftest-classes-pass-in-validation-before-deploy-but-fail-when-i-run-them-from-ap%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
          3
          down vote



          accepted










          During deployment, Mixed DML operations checks are skipped. Here is a knowledge article regarding this: https://help.salesforce.com/articleView?id=000231160&type=1






          share|improve this answer
















          • 1




            Thanks a lot!!!
            – Dana Griff
            49 mins ago














          up vote
          3
          down vote



          accepted










          During deployment, Mixed DML operations checks are skipped. Here is a knowledge article regarding this: https://help.salesforce.com/articleView?id=000231160&type=1






          share|improve this answer
















          • 1




            Thanks a lot!!!
            – Dana Griff
            49 mins ago












          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          During deployment, Mixed DML operations checks are skipped. Here is a knowledge article regarding this: https://help.salesforce.com/articleView?id=000231160&type=1






          share|improve this answer












          During deployment, Mixed DML operations checks are skipped. Here is a knowledge article regarding this: https://help.salesforce.com/articleView?id=000231160&type=1







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 1 hour ago









          Pragati Jain

          81048




          81048







          • 1




            Thanks a lot!!!
            – Dana Griff
            49 mins ago












          • 1




            Thanks a lot!!!
            – Dana Griff
            49 mins ago







          1




          1




          Thanks a lot!!!
          – Dana Griff
          49 mins ago




          Thanks a lot!!!
          – Dana Griff
          49 mins ago

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f236458%2ftest-classes-pass-in-validation-before-deploy-but-fail-when-i-run-them-from-ap%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