The compileAndTest() call contains this object, a request with information about the Apex to be compiled.
A CompileAndTestRequest object has the following properties:
Name | Type | Description |
---|---|---|
checkOnly | boolean | If set to true, the Apex classes and triggers submitted are not saved to your organization, whether or not the code successfully compiles and unit tests pass. |
classes | string | Content of the class or classes to be compiled. |
deleteClasses | string | Name of the class or classes to be deleted. |
deleteTriggers | string | Name of the trigger or triggers to be deleted. |
runTestsRequest | RunTestsRequest | Specifies information about the Apex to be tested. If this request is sent in a production organization, this property is ignored and all unit tests are run for your entire organization. |
triggers | string | Content of the trigger or triggers to be compiled. |