gulp-sf-run-test
gulp task for running apex-tests
Usage
First install gulp-sf-run-test
as a development dependency:
npm install gulp-sf-run-test --save-dev
Create .env file that saves credential information of your Salesforce account:
SFDC_HOST=your Salesforce host. https://ap2.salesforce.com,
Then, add it to your gulpfile.js:
var sfTest = ;
Then create a task that uses it:
- package.xml : Salesforce standard manifest file.
gulp;
Example of package.xml. Please make sure that both of production and test classes are needed:
XXXXXX XXXXXXTest YYYYYY YYYYYYTest ApexClass 34.0
Example of test result:
className,coveredRate,XXXXXX,52,YYYYYY,43,