pharo
pharo copied to clipboard
Using NewTestRunner in DrTests
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 ]
]