Skip to content

Commit

Permalink
Merge pull request #13836 from CarolinaMelendez/DTCoverage
Browse files Browse the repository at this point in the history
Run coverage button is enabled with unselected packages ( Dr Tests )
  • Loading branch information
Ducasse authored May 27, 2023
2 parents 292d76a + 441c5c9 commit 37087ca
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions src/DrTests-TestCoverage/DTTestCoverageResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,22 @@ Class {
DTTestCoverageResult >> buildTreeForUI [
<dtTestCoverageResultTreeNamed: 'List of uncovered methods' order: 1>
^ DTTreeNode new
subResults:
{(DTTreeNode new
name: (percent * 100 printShowingDecimalPlaces: 2) , ' % Code Coverage';
subResults: {};
yourself).
(DTTreeNode new
name: 'Uncovered methods';
subResults: (self methodList collect: [:each | each asResultForDrTest]);
yourself)}
subResults: (self methodList
ifNotNil: [
{(DTTreeNode new
name: (percent * 100 printShowingDecimalPlaces: 2) , ' % Code Coverage';
subResults: {};
yourself).
(DTTreeNode new
name: 'Uncovered methods';
subResults: (self methodList collect: [:each | each asResultForDrTest]);
yourself)}
]ifNil: [
{(DTTreeNode new
name: 'no package has been selected';
subResults: {};
yourself)}
])
]

{ #category : #accessing }
Expand Down

0 comments on commit 37087ca

Please sign in to comment.