Test classes pass in validation before deploy, but fail when i run them from “Apex Test Executionâ€
Clash 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?
failing-tests
add a comment |Â
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?
failing-tests
add a comment |Â
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?
failing-tests
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
failing-tests
edited 1 hour ago


Oleksandr Berehovskiy
7,62011734
7,62011734
asked 1 hour ago


Dana Griff
464417
464417
add a comment |Â
add a comment |Â
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
1
Thanks a lot!!!
– Dana Griff
49 mins ago
add a comment |Â
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
1
Thanks a lot!!!
– Dana Griff
49 mins ago
add a comment |Â
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
1
Thanks a lot!!!
– Dana Griff
49 mins ago
add a comment |Â
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
During deployment, Mixed DML operations checks are skipped. Here is a knowledge article regarding this: https://help.salesforce.com/articleView?id=000231160&type=1
answered 1 hour ago
Pragati Jain
81048
81048
1
Thanks a lot!!!
– Dana Griff
49 mins ago
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password