pharo icon indicating copy to clipboard operation
pharo copied to clipboard

Using NewTestRunner in DrTests

Open Ducasse opened this issue 3 years ago • 0 comments

Once the newTestRunner is integrated it would be good to migrate the following logic of DrTests to call it

DTTestsRunnerPlugin >> runSuite: aTestSuite withResult: aResult [

 	aTestSuite when: TestAnnouncement do: [ :testAnnouncement | 
 		self flag: #TODO. "Dirty"
 		testAnnouncement test class = TestSuite ifTrue: [ 
 			self announceStatusChanged:
 				('Running test {1}.' format: { testAnnouncement test name }) ] ].
 	[ aResult mergeWith: (aTestSuite run) ] ensure: [ 
 		aTestSuite unsubscribe: TestAnnouncement ]
 ]

Ducasse avatar Aug 05 '22 09:08 Ducasse