function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RonSFRonSF 

RunAllTests=True does not trigger tests

Hi

We use ant and I have the tag RunAllTests=true in the build.xml to trigger tests but find that the tests do not run on the orgs. Has anyone seen this before. What could be the potenitals problem here ? 

Thanks
RF
Amit Chaudhary 8Amit Chaudhary 8
You code should be like below :-
<target name="deployCodeCheckOnly" description="Does not actually save changes to server">
      <sf:deploy username="${TEST.username}" password="${TEST.password}" serverurl="${TEST.serverurl}" maxPoll="${sf.maxPoll}" deployRoot="codepkg" 
        checkOnly="true"  runAllTests="true"  rollbackOnError="true" logType="Debugonly" />
    </target>

Please try again and check.

 
RonSFRonSF
There is a new version of ant salesforce which has new properties such as testLevel that helped resolve the issue