Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add timestamp to JUnit output format. #122

Merged

Conversation

JulesFaucherre
Copy link
Contributor

Rationale

This change aims fixes the CLI issue #1048: the timestamp field of the JUnit test result

Considerations

In order to make tests predictable, an interface Clock has been added to mock time.Now() in the tests.

Changes

  • In JUnitResultHandler.HandleResults, made sure every test suite filled its Timestamp field with Clock.Now() which, in non-test situation, equals time.Now().

@JulesFaucherre JulesFaucherre requested a review from a team as a code owner March 4, 2024 11:04
@JulesFaucherre JulesFaucherre force-pushed the CLI-ISSUE#1048 branch 2 times, most recently from 0dc997b to 9aaa16b Compare March 4, 2024 13:00
Copy link
Contributor

@SemanticallyNull SemanticallyNull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@SemanticallyNull SemanticallyNull merged commit 84f6ea9 into CircleCI-Public:main Mar 4, 2024
4 checks passed
@JulesFaucherre JulesFaucherre deleted the CLI-ISSUE#1048 branch March 4, 2024 14:58
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.

2 participants