Salesforce Run Specified Tests Feature
December 7, 2015

Salesforce Run Specified Tests Feature

There is one new very cool feature called “run specified tests”.

Whenever you run your deployment or validation you may now select unit tests you want to run! This can save deployment or validation time tremendously!

This feature has been initially introduced in the Summer’15 Release ( you may refer to related Release notes here or to Salesforce tutorial here ). There was a bug in this feature claimed to be fixed in Winter’16 Release, and that is cool, I guess.

To use this feature in your ANT Migration Tool you will require the latest Force.com Migration Tool jar, which you may download directly from your production org or from any of your sandboxes here.

Also you need to add a new target inside your build.xml file specifying which tests you would like to run:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<target name="1*. Deploy to Production running a few tests?">
<sf:deploy username="${sf.production.username}"
password="${sf.production.password}${sf.production.securityToken}"
serverurl="${sf.production.serverurl}"
deployRoot="../${sf.deploy.dir}/${sf.sandbox.dir}"
rollbackOnError="true"
maxPoll="${sf.maxPoll}"
testLevel="RunSpecifiedTests"
pollWaitMillis="${sf.pollWaitMillis}">
<runTest>TestClass1</runTest>
<runTest>TestClass1</runTest>
<runTest>TestClass1</runTest>
</sf:deploy>
</target>

Click share or like if you also enjoy this new feature!

Tags

ANTdeploymentexecutionForce.commigrationteststoolvalidation

Share


Recent Articles

Women Driving Tech.
Interview with Intelligent, Classy, Ambitious and Inspirational Technologists.

May 23, 2019

In this blog series we continue talking to motivated and inspiring women with unrivalled dedication to tech. There are many bright examples of women in tech. These are founders, CEOs, mentors and innovators who are passionate about technology and work to create opportunities for women to actively and fairly participate in the economy. Part 2. […]

Clustering, Entity Extraction and Similarities Identification of Resume Texts

May 14, 2019 | Ihor Fesianov, Data Science Engineer

Modern resource management, HR and recruitment offices have to process remarkably large volumes of data: portfolio research, social media screening, skillset identification, references, and most importantly, resumes and CVs. Luckily or unfortunately, every professional segment, in global terms, has developed its own particular set of requirements that are necessary for actionable insights on every particular […]

Contact Us

By submitting this form you acknowledge that you agreed to our Cookies and Privacy Policy.