Skip to main content
added 102 characters in body
Source Link
Travis
  • 303
  • 3
  • 8

I've created a new Apex class representing a third-party SOAP web service, using the "Generate from WSDL" button. Now I'd like to deploy this class to my production environment, but I'm getting an error that my test coverage is now below 75%.

The new class is over 2500 lines, and I'd like to avoid manually writing unit tests for the entire class, partly because I'll only be using small parts of it (but want to keep the whole API available for future use), and partly because perfect functioning of this class is only a convenience, not a necessity for our business.

Is there any way to auto-generate the unit tests, or to otherwise quickly create unit tests that cover enough of my automatically generated Apex class, or possibly to just bypass the code coverage requirement for this class that doesn't need testing?

I've created a new Apex class representing a third-party SOAP web service, using the "Generate from WSDL" button. Now I'd like to deploy this class to my production environment, but I'm getting an error that my test coverage is now below 75%.

The new class is over 2500 lines, and I'd like to avoid manually writing unit tests for the entire class, partly because I'll only be using small parts of it (but want to keep the whole API available for future use), and partly because perfect functioning of this class is only a convenience, not a necessity for our business.

Is there any way to auto-generate the unit tests, or otherwise quickly create unit tests that cover enough of my automatically generated Apex class?

I've created a new Apex class representing a third-party SOAP web service, using the "Generate from WSDL" button. Now I'd like to deploy this class to my production environment, but I'm getting an error that my test coverage is now below 75%.

The new class is over 2500 lines, and I'd like to avoid manually writing unit tests for the entire class, partly because I'll only be using small parts of it (but want to keep the whole API available for future use), and partly because perfect functioning of this class is only a convenience, not a necessity for our business.

Is there any way to auto-generate the unit tests, or to otherwise quickly create unit tests that cover enough of my automatically generated Apex class, or possibly to just bypass the code coverage requirement for this class that doesn't need testing?

Tweeted twitter.com/#!/StackSalesforce/status/416248887457112064
Source Link
Travis
  • 303
  • 3
  • 8

Any way to easily create unit tests for a wsdl2apex generated Apex class?

I've created a new Apex class representing a third-party SOAP web service, using the "Generate from WSDL" button. Now I'd like to deploy this class to my production environment, but I'm getting an error that my test coverage is now below 75%.

The new class is over 2500 lines, and I'd like to avoid manually writing unit tests for the entire class, partly because I'll only be using small parts of it (but want to keep the whole API available for future use), and partly because perfect functioning of this class is only a convenience, not a necessity for our business.

Is there any way to auto-generate the unit tests, or otherwise quickly create unit tests that cover enough of my automatically generated Apex class?