tpl/build.xml.erb in salesforce-deploy-tool-2.1.1 vs tpl/build.xml.erb in salesforce-deploy-tool-3.1.0

- old
+ new

@@ -17,24 +17,37 @@ maxPoll="200" rollbackOnError="true" > </sf:deploy> </target> - <target name="deployAndTestCode"> + <target name="checkOnlyCode"> <sf:deploy username="${env.SF_USERNAME}" password="${env.SF_PASSWORD}" serverurl="${env.SF_SERVERURL}" deployRoot="${env.SF_SRC_DIR}" maxPoll="200" + checkOnly="true" rollbackOnError="true" > + </sf:deploy> + </target> + + <target name="deployAndRunSpecifiedTests"> + <sf:deploy + username="${env.SF_USERNAME}" + password="${env.SF_PASSWORD}" + serverurl="${env.SF_SERVERURL}" + deployRoot="${env.SF_SRC_DIR}" + maxPoll="200" + rollbackOnError="true" + testLevel="RunSpecifiedTests"> <% @run_tests.each do |test| -%> <runTest><%= test %></runTest> <% end -%> </sf:deploy> </target> - <target name="deployAndTestAllCode"> + <target name="deployAndTestCode"> <sf:deploy username="${env.SF_USERNAME}" password="${env.SF_PASSWORD}" serverurl="${env.SF_SERVERURL}" deployRoot="${env.SF_SRC_DIR}"