Skip to content

Commit

Permalink
done test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiDevOpsFaculty committed Nov 17, 2018
1 parent 36482b9 commit 7ad995a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
8 changes: 8 additions & 0 deletions TestCalculator_JUnitResult.txt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Testsuite: junit.TestCalculator
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.049 sec

Testcase: testDivideByZero took 0.008 sec
Testcase: testAdd took 0 sec
Testcase: testSubtract took 0.001 sec
Testcase: testDivide took 0 sec
Testcase: testMultiply took 0 sec
19 changes: 16 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<project name="SampleBuild" default="compile" basedir=".">
<project name="SampleBuild" default="war" basedir=".">
<taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"
classpath="WebContent/WEB-INF/lib/checkstyle-7.8.2-all.jar"/>
<path id="compile.classpath">
Expand All @@ -10,7 +10,7 @@
<mkdir dir="build/classes"/>
<mkdir dir="dist"/>
</target>
<target name="compile" depends="init">
<target name="compile" depends="init">
<javac srcdir="src" debug="true" destdir="build/classes">
<classpath refid="compile.classpath"/>
</javac>
Expand All @@ -20,5 +20,18 @@
<fileset dir="src/example" includes="**/*.java"/>
<formatter type="xml" toFile="checkstyle_errors.xml"/>
</checkstyle>
</target>
</target>
<target name="junit">
<junit printsummary="yes" haltonfailure="yes">
<classpath>
<pathelement location="build/classes"/>
<pathelement path="WebContent/WEB-INF/lib/junit.jar"/>
<pathelement path="WebContent/WEB-INF/lib/org.hamcrest.core_1.3.0.v201303031735.jar"/>
</classpath>
<test name="junit.TestCalculator" haltonfailure="no" outfile="TestCalculator_JUnitResult.txt">
<formatter type="plain"/>
</test>
</junit>
</target>
</project>

0 comments on commit 7ad995a

Please sign in to comment.