Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.1
-
None
-
window
Description
1. Created the ant project in continuum.
2. Set the includeTestSummary and includeOutput to true in application.xml
<includeBuildResult>true</includeBuildResult>
<includeBuildSummary>true</includeBuildSummary>
<includeTestSummary>true</includeTestSummary>
<includeOutput>true</includeOutput>
<alwaysSend>true</alwaysSend>
3. Run the ant test build with JUnit:
build.xml
<target name="testsuite" depends="build" description="Run JUnit Test Suite">
<junit printsummary="on" fork="yes" haltonfailure="off" haltonerror="off">
<classpath refid="master-classpath"/>
<formatter type="brief" usefile="false" />
<test name="com.leapfile.ftstest.FTSTestSuite" />
</junit>
</target>
Online report:
Buildfile: build.xml
build:
testsuite:
[junit] Running com.leapfile.ftstest.FTSTestSuite
[junit] Testsuite: com.leapfile.ftstest.FTSTestSuite
[junit] Tests run: 306, Failures: 0, Errors: 0, Time elapsed: 168.125 sec
[junit] Tests run: 306, Failures: 0, Errors: 0, Time elapsed: 168.125 sec
[junit]
[junit] ------------- Standard Output ---------------
[junit] JavaMailService 1.1
[junit] - JavaMailService:smtpHost=secure.leapfile.com
...
But the email summary:
****************************************************************************
Build Defintion:
****************************************************************************
Ant build filename: build.xml Goals: testsuite Arguments: Build Fresh: false
Always Build: false
Default Build Definition: true
Schedule: DEFAULT_SCHEDULE
Description: default ant buildDefinition
****************************************************************************
Test Summary:
****************************************************************************
Tests: 0
Failures: 0
Total time: 0.0
Thanks.
Attachments
Issue Links
- is related to
-
CONTINUUM-1837 Report test results with ant
- Closed