• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jecisc / Chanel / 21145012808

19 Jan 2026 04:35PM UTC coverage: 97.557%. Remained the same
21145012808

Pull #115

github

jecisc
Drop Pharo 8 compatibility
Pull Request #115: Drop Pharo 8 and add Pharo13 compatibility

559 of 573 relevant lines covered (97.56%)

2.88 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/Chanel/ChanelTestCaseNameCleaner.class.st
1
"
2
Description
3
--------------------
4

5
I am a cleaner renaming each test case ending with ""Tests"" to end with ""Test"" since this is ""a XXTestCase"".
6
"
7
Class {
8
        #name : 'ChanelTestCaseNameCleaner',
9
        #superclass : 'ChanelAbstractCleaner',
10
        #category : 'Chanel',
11
        #package : 'Chanel'
12
}
13

14
{ #category : 'cleaning' }
15
ChanelTestCaseNameCleaner >> clean [
3✔
16
        self configuration definedTestCases iterator
3✔
17
                | [ :class | class name endsWith: 'Tests' ] selectIt
3✔
18
                | [ :class | self class environment hasClassNamed: class name allButLast ] rejectIt
3✔
19
                > [ :class | self rename: class as: class name allButLast ] doIt
3✔
20
]
3✔
21

22
{ #category : 'cleaning' }
23
ChanelTestCaseNameCleaner >> rename: class as: aString [
1✔
24

1✔
25
        | refactoringClass parameter |
1✔
26
        ('Renaming ' , class name , ' to ' , aString) record.
1✔
27
        self flag: #pharo10.
1✔
28
        self flag: #pharo11.
1✔
29
        parameter := SystemVersion current major < 10
1✔
30
                             ifTrue: [ class ]
1✔
31
                             ifFalse: [ class name ].
1✔
32
        refactoringClass := self class environment at: #RBRenameClassRefactoring ifAbsent: [ self class environment at: #ReRenameClassRefactoring ].
1✔
33
        (refactoringClass rename: parameter to: aString) execute
1✔
34
]
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc