-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add some not super nice tests on reporter.
- Enhance robustness of results that would be missing information (added dummy initialize methods).
- Loading branch information
Showing
7 changed files
with
118 additions
and
7 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/Microdown-BookTester-Tests/MicAnalysisReportWriterTest.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Class { | ||
#name : 'MicAnalysisReportWriterTest', | ||
#superclass : 'TestCase', | ||
#category : 'Microdown-BookTester-Tests', | ||
#package : 'Microdown-BookTester-Tests' | ||
} | ||
|
||
{ #category : 'tests' } | ||
MicAnalysisReportWriterTest >> testWithEmptyResults [ | ||
|
||
self assert: MicAnalysisReportWriter new report isEmpty | ||
] | ||
|
||
{ #category : 'tests' } | ||
MicAnalysisReportWriterTest >> testWithResults [ | ||
|
||
| reporter | | ||
reporter := MicAnalysisReportWriter new | ||
addResults: { MicBrokenSyncDefinition new }; | ||
addResults: { MicBrokenSyncOriginDefinition new }. | ||
self assert: reporter results size equals: 2. | ||
self deny: reporter report isEmpty | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters