Run only apex test thats related to the Pull request for Validate pull requests targeting the source branch
When we check Validate pull requests targeting the source branch for the Pull request , it runs all the test class irrespective of the package content that being pushed.
It should not run any test class if pushed metadata is only configuration.
It should run only test class if pushed metadata ha class.
1
vote
supriyam srivastava
shared this idea
-
Rúben Nunes commented
I believe this idea was already delivered. Test classes only run if apex code is included in the PR.
-
[Deleted User] commented
this should be an option; not unconditional as there can be side effects from the PR delta (e.g., making a field required or adding a VR rule could break dozens of existing tests)