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

Amend SummaryStyle to support visualization of '0' in reports #1240

Merged
merged 2 commits into from
Sep 6, 2019

Conversation

sleemer
Copy link
Contributor

@sleemer sleemer commented Sep 3, 2019

In order to use generated csv reports for publishing results to TSDB (e.g. Influx) we need to change the way '0' are visualized. By default they are dashed '-'. The goal of this PR is to change it for CsvExporter, but leave it as it is for the other exporters (console/GH/HTML).

Addresses #1168

- Extract CreateSummary method for benchmarks with metrics
- Extract FakeMetricDescriptor into separate file
- CsvExporter now prints '0' instead of '-' in the report
- Add PrintZeroValuesInContent option in SummaryStyle to control it (by default it is false)
- Add tests to cover changed behavior

Closes dotnet#1168
@dnfclas
Copy link

dnfclas commented Sep 3, 2019

CLA assistant check
All CLA requirements met.

@AndreyAkinshin AndreyAkinshin self-requested a review September 6, 2019 12:08
Copy link
Member

@AndreyAkinshin AndreyAkinshin left a comment

Choose a reason for hiding this comment

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

LGTM

@AndreyAkinshin AndreyAkinshin added this to the v0.11.6 milestone Sep 6, 2019
@AndreyAkinshin AndreyAkinshin merged commit 03e9ce1 into dotnet:master Sep 6, 2019
@AndreyAkinshin
Copy link
Member

@sleemer thanks!

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.

3 participants