Conversation
…e-framework#3092, fixes allure-framework#2727) - Success Rate is taken from the test result history statistic and uses the same calculation as the history tab (passed / total, floored to two decimals). It is empty when the test has no history. - Issues lists the issue links of the test result as "name (url)".
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
fixes #3092, fixes #2727
Context
Adds two columns to the Suites tab Download CSV export (
data/suites.csv):passed / totalof the history statistic, floored to two decimals (e.g.66.66%,100%). The value is read from thehistoryextra block thatHistoryPluginattaches beforeSuitesPluginruns. When a test has no history yet (first run, or nohistory/folder copied into results), the cell is empty, the same as the History tab.issue, exported asname (url)and separated by,. For example,allure.issue("https://example.atlassian.net/browse/ABC-1", "ABC-1")becomesABC-1 (https://example.atlassian.net/browse/ABC-1). A link with only a name or only a URL is exported as that value.Implementation notes:
CsvExportSuite(plugin API) gets a newCsvExportSuite(TestResult, Statistic)constructor. The existingCsvExportSuite(TestResult)constructor is kept for external plugins and leaves Success Rate empty.HistoryPlugin.HISTORY_BLOCK_NAMEis nowpublic, likeExecutorPlugin.EXECUTORS_BLOCK_NAME, soSuitesPlugincan read the history block.Checklist