Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Salesforce Ant script: Run All tests not running

Ajay Kumar January 9, 2017

Hi,

I have this in my build. it is expected to run all test. However none of the tests are running for some reason.

<target name="deployEmptyCheckOnly">
      <echo level="info">Testing the deploy</echo>
      <sf:deploy
          checkOnly="true"
          logType="Debugonly"
          username="${sfdc.username}"
          password="${sfdc.password}"
          serverurl="${sfdc.serverurl}"
          deployRoot="${basedir}/src"
          pollWaitMillis="${sfdc.pollWaitMillis}"
          maxPoll="${sfdc.maxPoll}" 
		  runAllTests="true" />
    </target>

 

What could be the reason here?

Regards,
Ajay 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Melanie Wright
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 9, 2017

Hi Ajay,

In our build.xml file, we've replaced 

 runAllTests="true" 

with

    testLevel="RunLocalTests" 

 

&lt;target name="deployEmptyCheckOnly"&gt;
      &lt;echo level="info"&gt;Testing the deploy&lt;/echo&gt;
      &lt;sf:deploy
          checkOnly="true"
          logType="Debugonly"
          username="${sfdc.username}"
          password="${sfdc.password}"
          serverurl="${sfdc.serverurl}"
          deployRoot="${basedir}/src"
          pollWaitMillis="${sfdc.pollWaitMillis}"
          maxPoll="${sfdc.maxPoll}"
          testLevel="RunLocalTests"&gt;
       &lt;/sf:deploy&gt;
    &lt;/target&gt;

Let me know if this does the trick and I'll update our documentation.

Hope this helps!
Melanie

0 votes
Ajay Kumar January 9, 2017

Thanks Melanie.

 

It worked.

TAGS
AUG Leaders

Atlassian Community Events