Salesforce Run Specified Tests Feature

I have posted an article about one new very cool feature called “run specified tests” on my corporate blog.

The main idea is to add new target inside your build.xml file specifying which tests you would like to run:


<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>
Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s