Skip to content

Introduce reportTestTimestamp option and include timestamp for test sets and test cases#3261

Open
kevinnammour wants to merge 1 commit intoapache:masterfrom
kevinnammour:reportStartTimestamp
Open

Introduce reportTestTimestamp option and include timestamp for test sets and test cases#3261
kevinnammour wants to merge 1 commit intoapache:masterfrom
kevinnammour:reportStartTimestamp

Conversation

@kevinnammour
Copy link

@kevinnammour kevinnammour commented Feb 14, 2026

New feature, improvement proposal

Summary

Introduce an explicit test timestamp field in XML reports at both the testsuite and testcase levels. This enhancement will allow each test suite and individual test case to record the precise processing time of execution.

The addition of test timestamps makes it easier to correlate test execution events with external, time-based system metrics such as CPU usage, memory consumption, I/O activity, JVM metrics, and other system-level monitoring data.

The timestamp:

  • Represent the exact processing time of execution for each test suite and test case
  • Use ISO‑8601 format (UTC) for interoperability
  • Only shown when reportTestTimestamp is set to true

Motivation & Use Cases
This makes it easier to correlate test execution with time-based external signals, such as:

  • CPU usage
  • memory consumption
  • I/O pressure
  • JVM metrics
  • system-level monitoring data

Report Example

<testsuite
    name="com.example.MyTest"
    timestamp="2026-01-29T06:41:12.345Z"
    time="12.345">
<testcase
    name="shouldProcessData"
    classname="com.example.MyTest"
    timestamp="2026-01-29T06:41:15.123Z"
    time="0.456">
.......

Following this checklist to help us incorporate your contribution quickly and easily:

  • Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.
  • You have run the integration tests successfully (mvn -Prun-its clean install).

If your pull request is about ~20 lines of code you don't need to sign an Individual Contributor License Agreement if you are unsure please ask on the developers list.

To make clear that you license your contribution under the Apache License Version 2.0, January 2004 you have to acknowledge this by using the following check-box.

@kevinnammour kevinnammour marked this pull request as ready for review February 14, 2026 19:22
@kevinnammour
Copy link
Author

Hi @olamy, this is the PR we discussed a couple of weeks ago about the test timestamp reporting, please take a look when ur free.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant