-
Notifications
You must be signed in to change notification settings - Fork 71
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
Stopwatch extension (#38 / #182) #182
Conversation
Don't understand why the Travis fails. I merged current master into the branch, run |
Seen in the Travis log (I hope this works). It seems you are missing a Seems fair, you did add a new package. |
long elapsedTime = currentTimeMillis() - launchTime; | ||
|
||
String message = String.format("%s '%s' took %d ms.", unit.name(), context.getDisplayName(), elapsedTime); | ||
context.publishReportEntry("stopwatch", message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry to bother you with this but wouldn't this get overwritten if I run two test files with the @Stopwatch
annotation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fairly new to the TestReporter
as is, so I really am just asking for information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure as I used the TestReporter
for the first time, but as I understand it the context is for each test case. But I'm not sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sormuras Can you enlighten us?
Thanks, never created such a file - but there's always the first time. Run spotless again, several files were changed. Commitet and pushed them. Let's see what Travis makes out of it |
Removed the |
Why did never mentioned that I'm lacking documentation. I mean - ME?!? |
# Conflicts: # src/main/java/org/junitpioneer/jupiter/Utils.java
Suggested commit message
|
# Conflicts: # src/main/java/org/junitpioneer/jupiter/package-info.java
# Conflicts: # docs/docs-nav.yml
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
# Conflicts: # docs/docs-nav.yml # src/main/java/org/junitpioneer/jupiter/package-info.java
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from minor things, I think this is good. Nicely done!
Please merge the master
branch into your branch.
src/test/java/org/junitpioneer/jupiter/StopwatchExtensionTests.java
Outdated
Show resolved
Hide resolved
src/test/java/org/junitpioneer/jupiter/StopwatchExtensionTests.java
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. 👍
Implementing a stopwatch extension as discussed in #38 and #99.
Suggested commit message
closes #38
I hereby agree to the terms of the JUnit Pioneer Contributor License Agreement.