Skip to content

Commit

Permalink
Speed up slow test ClassListSelectorTest>>testHierarchyMove
Browse files Browse the repository at this point in the history
  • Loading branch information
blairmcg committed Jan 7, 2024
1 parent fbae988 commit a857eae
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Core/Object Arts/Dolphin/IDE/Tools.Tests.ClassListSelectorTest.cls
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,16 @@ testAddRemoveListItems
self removeClassesGHI.
nilSubclasses do: [:each | self denyContains: each]!

testHierarchyMove
<nocreate>
| env |
"Constraining the model with to BrowserEnvironment containing only a limited subset of all classes both speeds up the test and gives us some coverage of the filtering mechanism"
presenter := self classToTest show.
env := Refactory.Browser.BrowserEnvironment new.
presenter browserEnvironment: (env forPackages: { packageA. packageB. packageC })
| (env forClasses: { Object. Behavior }).
^super testHierarchyMove!

treeModel
^presenter classHierarchyPresenter treeModel! !
!Tools.Tests.ClassListSelectorTest categoriesForMethods!
Expand All @@ -151,6 +161,7 @@ listModel!accessing!private! !
removalOfSelectionLeaves:!helpers!private! !
resetSelection!helpers!private! !
testAddRemoveListItems!public!unit tests! !
testHierarchyMove!public!unit tests! !
treeModel!accessing!private! !
!

0 comments on commit a857eae

Please sign in to comment.