deployment using change set- run specified test
Clash 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?
apex unit-test code-coverage change-set
add a comment |Â
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?
apex unit-test code-coverage change-set
add a comment |Â
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?
apex unit-test code-coverage change-set
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
apex unit-test code-coverage change-set
asked 59 mins ago
Vivian
63
63
add a comment |Â
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
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
answered 54 mins ago


sfdcfox
232k10179395
232k10179395
add a comment |Â
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%2f235901%2fdeployment-using-change-set-run-specified-test%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