-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
testing: initial test coverage UI #198812
Conversation
This continues on the coverage API I started a few years ago. It adds initial integration where a "Show Test Coverage" tree item is shown in the Test Results view, which then opens a dedicated Test Coverage view. The Test Coverage view is a fairly basic tree view following the draft design, with further improvements to come. The 'bars' widget is also built in a reusable way such that it can be integrated into the explorer, as this was a popular ask both inside and outside the team. For #123713.
1094b15
to
e09bee7
Compare
TestingDisplayedCoveragePercent.Minimum, | ||
], | ||
enumDescriptions: [ | ||
localize('testing.displayedCoveragePercent.totalCoverage', 'A calculate of the combined statement, function, and branch coverage.'), |
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.
"A combination of" instead of "A calculate of"?
/** @inheritdoc */ | ||
public renderCompressedElements(node: ITreeNode<ICompressedTreeNode<CoverageTreeElement>, FuzzyScore>, _index: number, templateData: TemplateData): void { | ||
const chain = node.element.elements; | ||
const lastElement = chain[chain.length - 1]; |
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 an empty array check needed?
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.
no, the tree won't render compressed elements where the elements are empty
This continues on the coverage API I started a few years ago. It adds initial integration where a "Show Test Coverage" tree item is shown in the Test Results view, which then opens a dedicated Test Coverage view. The Test Coverage view is a fairly basic tree view following the draft design, with further improvements to come.
The 'bars' widget is also built in a reusable way such that it can be integrated into the explorer, as this was a popular ask both inside and outside the team.
For #123713.