Skip to content

Commit

Permalink
Making every Finder strategy able to understand buildCacheFromTestSuite:
Browse files Browse the repository at this point in the history
For a static selection strategy, this method does nothing because there is no cache.
  • Loading branch information
ClotildeToullec committed Jul 5, 2019
1 parent 9d8b882 commit b2f4de1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/SmartTest/SmTSenderTestFinderStrategy.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ SmTSenderTestFinderStrategy class >> isConcreteFinder [
^ true
]

{ #category : #api }
SmTSenderTestFinderStrategy >> buildCacheFromTestSuite: aTestSuite [
"No cache for static finder"
]

{ #category : #'private - search' }
SmTSenderTestFinderStrategy >> collectSenderOfRGMethodeDefintion: aRGMethodDefinition [
^ aRGMethodDefinition isInitializer
Expand Down
5 changes: 5 additions & 0 deletions src/SmartTest/SmTTestFinderStrategy.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ SmTTestFinderStrategy class >> isConcreteFinder [
^ false
]

{ #category : #api }
SmTTestFinderStrategy >> buildCacheFromTestSuite: aTestSuite [
self subclassResponsibility
]

{ #category : #accessing }
SmTTestFinderStrategy >> cache [
^ cache
Expand Down
5 changes: 3 additions & 2 deletions src/SmartTest/SmartFinder.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ SmartFinder >> autoUpdateCache: aBoolean [

{ #category : #api }
SmartFinder >> buildCacheFromTestSuite: aTestSuite [
"Work only if you have selected a Dynamic strategy"
self smtFinder buildCacheFromTestSuite: aTestSuite
"Cache will be built only for a dynamic strategy"

self smtFinder buildCacheFromTestSuite: aTestSuite
]

{ #category : #accessing }
Expand Down

0 comments on commit b2f4de1

Please sign in to comment.