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

TestMethods all above 75% but won't deploy
I have a test class with testMethods in, all of which cover above 75%. When I deploy, it still will not complete, it is giving me this error, which is an expected validation error. If I remove the piece of test code that causes this error, then the test coverage falls below 75%!
This makes no sense to me... does there need to be no expected errors in order to deploy?
The docs say for best practice use test code that will cause expected errors!
See screenshow below...

This makes no sense to me... does there need to be no expected errors in order to deploy?
The docs say for best practice use test code that will cause expected errors!
See screenshow below...

Cheers