I am writing an API that translates actions performed by a non-technical user into Salesforce.com SOQL 'SELECT' , 'UPSERT' and 'DELETE' . Is there any resource, library, etc. that could check the syntax of the generated SOQL? I am the only one in my company with any experience with SOQL, so I would like to put it in a set of automated tests so that other developers who improve the SOQL generation algorithm (or fix) know that it is still functioning properly.
I know that one solution is to simply perform these integration tests. However, I would prefer to avoid this for three reasons:
- I will need to support a different Salesforce.com account for tests only so that we donβt go to our API request.
- As a result, we will pursue false positives when there are problems with communication with Salesforce.com.
- Those other developers who are not experienced will potentially have to figure out how to clean up an instance of Salesforce.com after failed DML checks (which really means that I will need to clean up the instance whenever this happens).
source share