Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
JUnit #103
base: master
Are you sure you want to change the base?
JUnit #103
Changes from 5 commits
1ac8cd3
95cb1ff
170f6a7
60d6870
30aa9cf
c4e3f57
4be73c0
88e95c1
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Can you help me understand the difference between timestamp above and time(0) here and above?
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.
Sure. The JUnit format has a timestamp indicating when the Test Suite was started, and then Time indicates the time (in seconds) that the test suite took. Test cases also have a time in second, but no timestamp to indicate when they started. The fact that
testSuite.time(0)
is here is I think a relic of when I was trying to actually calculate the time it took to generate the report, so I couldn't set the time until the report was done. However after looking at what eslint did (just setting the time to 0) I removed the calculation but left setting it there. There's no reason why it can't be moved into the construction of the testSuite since I know the time will be 0.But regardless of where it's defined, they're two separate values. Eslint just doesn't set the timestamp at all, but it is one of the JUnit fields, separate from time.
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.
Is “junit” the preferred capitalization?
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.
looks like
JUnit
is the correct name, but I'm thinking it makes sense to leave the option name and file name in the current case, and just change the descriptive text?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.
Agreed!
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.