valmaev / antforce

Apache Ant tasks that help implementing Continuous Integration for Force.com projects
Apache License 2.0
3 stars 2 forks source link

Added support of ZipFileSets in BatchTest element. #8

Closed valmaev closed 7 years ago

valmaev commented 7 years ago

To being able to use wildcards to define test class names that should be run during deployment support of ZipFileSets was added to BatchTest.

For example:

<target name="deployZip">
    <antforce:deploy
            username="${sf.username}"
            password="${sf.password}${sf.token}"
            serverUrl="${sf.server}"
            zipFile="src.zip"
            testLevel="RunSpecifiedTests">
        <batchtest>
            <zipfileset src="src.zip" includes="classes/*TestClass.cls" />
        </batchtest>
    </antforce:deploy>
</target>

Fixes #6

codecov[bot] commented 7 years ago

Codecov Report

Merging #8 into master will not impact coverage by -0.38%.

@@             Coverage Diff              @@
##             master       #8      +/-   ##
============================================
- Coverage     85.75%   85.37%   -0.38%     
- Complexity      158      159       +1     
============================================
  Files            16       16              
  Lines          1018     1067      +49     
  Branches        108      166      +58     
============================================
+ Hits            873      911      +38     
- Misses           84       87       +3     
- Partials         61       69       +8
Impacted Files Coverage Δ Complexity Δ
.../main/kotlin/com/aquivalabs/force/ant/BatchTest.kt 90.9% <100%> (+18.18%) 13 <7> (+1) :white_check_mark:
...om/aquivalabs/force/ant/reporters/JUnitReporter.kt 45.71% <ø> (-5.85%) 5% <ø> (ø)
...aquivalabs/force/ant/reporters/TeamCityReporter.kt 93.61% <ø> (-4.26%) 18% <ø> (ø)
...n/com/aquivalabs/force/ant/reporters/xml/XmlDsl.kt 65.95% <ø> (-2.05%) 0% <ø> (ø)
...s/force/ant/reporters/CoberturaCoverageReporter.kt 93.87% <ø> (-1.78%) 7% <ø> (ø)
...valabs/force/ant/reporters/HtmlCoverageReporter.kt 93.47% <ø> (-0.99%) 30% <ø> (ø)
...om/aquivalabs/force/ant/DeployCoverageTestClass.kt 87.4% <ø> (-0.48%) 0% <ø> (ø)
.../aquivalabs/force/ant/DeployWithTestReportsTask.kt 78.37% <ø> (-0.04%) 50% <ø> (ø)
...m/aquivalabs/force/ant/reporters/junit/JUnitDsl.kt 94.23% <ø> (+0.11%) 0% <ø> (ø) :x:
...lin/com/aquivalabs/force/ant/InstallPackageTask.kt 92.85% <ø> (+1.19%) 21% <ø> (ø) :x:
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 4855a04...98b2a54. Read the comment docs.