November 1, 2020

How to just validate the package with Specific test classes using ANT tool in Salesforce?

How to just validate the package with Specific test classes using ANT tool in Salesforce?    

build.xml:        
    <target name="validateSpecified">
        <sf:deploy
            username="${sf.username}"
            password="${sf.password}"
            serverurl="${sf.sandboxurl}"
            checkOnly="true"
            deployroot="Retrieve"
            testLevel="RunSpecifiedTests">
            <runTest>TestClass</runTest>
        </sf:deploy>
    </target>

No comments:

Post a Comment