Skip to content

Commit

Permalink
lazy initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Durieux Pol committed Apr 16, 2024
1 parent 937205b commit fba74ed
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/MuTalk-Model/MTAnalysis.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,8 @@ MTAnalysis >> initialTestRun [
| results |
results := testCases collect: [ :aTestCase | aTestCase run ].

"The test filter is initialized here because the default one needs the run time of tests, so the initial test run must be executed first"
self initializeTestFilter.
testFilter validateFailuresIn: results.
"The test filter is initialized lazily here because the default one needs the run time of tests, so the initial test run must be executed first"
self testFilter validateFailuresIn: results.
testCases := testFilter filterTests: testCases
]

Expand All @@ -179,12 +178,6 @@ MTAnalysis >> initialize [
stopOnErrorOrFail := true
]

{ #category : 'initialization' }
MTAnalysis >> initializeTestFilter [

testFilter ifNil: [ testFilter := self defaultTestFilter ]
]

{ #category : 'accessing' }
MTAnalysis >> logger [

Expand Down Expand Up @@ -363,7 +356,7 @@ MTAnalysis >> testClasses: aClassCollection [
{ #category : 'accessing' }
MTAnalysis >> testFilter [

^ testFilter
^ testFilter ifNil: [ testFilter := self defaultTestFilter ]
]

{ #category : 'accessing' }
Expand Down

0 comments on commit fba74ed

Please sign in to comment.