[GRADLE-2730] JUnit test report testsuite timestamp is epoch Created: 02/Apr/13  Updated: 15/Nov/13  Resolved: 15/Nov/13

Status: Resolved
Project: Gradle
Affects Version/s: 1.5-rc-2
Fix Version/s: 1.10-rc-1

Type: Bug
Reporter: AleWir Assignee: Szczepan Faber
Resolution: Fixed Votes: 5


 Description   

In my test execution, JUnit classes report that their timestamp is 1970.

<testsuite name="ams.auto.commissionexch.AtaExchangeOnStatement" tests="1" failures="0" errors="0" skipped="0" timestamp="1970-01-01T00:00:00" hostname="ctovm1588" time="1.364732164097E9">
<properties/>
<testcase name="testAtaExchange_SFC" classname="ams.auto.commissionexch.AtaExchangeOnStatement" time="109.145"/>
<system-out>
...



 Comments   
Comment by AleWir [ 04/Apr/13 ]

See also: http://stackoverflow.com/questions/14991183/junit-test-report-testsuites-timestamp-is-epoch

Comment by James Justinic [ 17/Jul/13 ]

We are seeing this same problem in 1.6. The timestamp is Jan. 1, 1970 with the time calculated from that date on many tests.

In our case, it is many, but not all generated XML results. We do have some testsuites that report the correct timestamp/time.

Comment by Donald Ngo [ 13/Nov/13 ]

This also happens on tests tasks used on TestNG as well. Please fix.

Output of a single test's .xml, Notice the timestamp is 1970.

<?xml version="1.1" encoding="UTF-8"?>
<testsuite name="com.arcsight.qa.poc.nonweb.OneParameterizedTests" tests="2" failures="0" errors="0" timestamp="1970-01-01T00:00:00" hostname="NGODO2" time="1.384304772942E9">
<properties/>
<testcase name="oneTest[0](one)" classname="com.arcsight.qa.poc.nonweb.OneParameterizedTests" time="0.013"/>
<testcase name="oneTest[1](two)" classname="com.arcsight.qa.poc.nonweb.OneParameterizedTests" time="0.0"/>
<system-out><![CDATA[System.out.println(): Inside oneTest Parameter:one
System.out.println(): Inside oneTest Parameter:two
]]></system-out>
<system-err><![CDATA[log4j:WARN No appenders could be found for logger (com.arcsight.qa.poc.nonweb.OneParameterizedTests).
log4j:WARN Please initialize the log4j system properly.
]]></system-err>
</testsuite>

$ gradle --version

------------------------------------------------------------
Gradle 1.8
------------------------------------------------------------

Build time: 2013-09-24 07:32:33 UTC
Build number: none
Revision: 7970ec3503b4f5767ee1c1c69f8b4186c4763e3d

Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy: 2.2.0
JVM: 1.7.0_25 (Oracle Corporation 23.25-b01)
OS: Windows 7 6.1 amd64

Generated at Wed Jun 30 12:29:56 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.