Skip to content

SONARPY-263 Import unit tests execution reports generated by py.test#187

Merged
christophe-zurn-sonarsource merged 5 commits intomasterfrom
SONARPY-263
Jan 30, 2019
Merged

SONARPY-263 Import unit tests execution reports generated by py.test#187
christophe-zurn-sonarsource merged 5 commits intomasterfrom
SONARPY-263

Conversation

@christophe-zurn-sonarsource
Copy link
Copy Markdown
Contributor

No description provided.

LOG.debug("Saving test execution measures for '{}'", inputFile.toString());

saveMeasure(context, inputFile, CoreMetrics.SKIPPED_TESTS, fileTestResult.getSkipped());
saveMeasure(context, inputFile, CoreMetrics.TESTS, fileTestResult.getTests() - fileTestResult.getSkipped());
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I would explicitly have this in the TestResult class, called getExecutedTests(), so you don't have to do the substraction everywhere.

@christophe-zurn-sonarsource christophe-zurn-sonarsource deleted the SONARPY-263 branch January 30, 2019 12:44
hashicorp-vault-sonar-prod Bot pushed a commit that referenced this pull request Apr 11, 2025
GitOrigin-RevId: 9fc1d6e48c9376d3a01c8560e729ad18ef5fe0e2
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.

1 participant