-
Notifications
You must be signed in to change notification settings - Fork 153
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
Report profiler version #251
Conversation
This allows us to accomplish the same results with dynamic data bindings instead of just rendering a static template.
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 mostly good, I added some comments.
Could you upload a benchmark.html
file, so I can look at it without running an actual benchmark?
build.gradle.kts
Outdated
manifest { | ||
attributes( | ||
"Implementation-Title" to "Gradle Profiler", | ||
"Implementation-Version" to archiveVersion |
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 think it would be better to use project.version
here, since we may remove the version from the archive name.
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.
OK, fixed.
"definition": { | ||
stringWriter.toString() ==~ /\{ | ||
"environment": \{ | ||
"profilerVersion": ".*" |
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.
The version should be available here, so you could assert the actual version string, right?
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.
It is UNKNOWN
if you try to run the test from classes. But... yeah, we could do it that way.
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!
Expose the profiler version in the HTML report and on the command-line.
Fixes #171