You need to sign in to do that
Don't have an account?

When migrating an Apex class, should its test class be migrated too?
Please pardon this newbie question and provide the link if this has been answered before
I develop an Apex class X. I write another Apex class Y as a test class of X. When I migrate X to production, do I have to migrate Y too?
Thanks.



Yes. When migrating to production, all of the tests are run and the coverage needs to satisfy the 75%. If the test is not there already then you need to migrate it.