|
Indeed, for some projects like SmartTest or RottenTestsFinder, you can not look for the coverage of unit tests because of a dummy boolean condition:
choosenpackages := (RPackageOrganizer default packages
reject: [:package | (package packageName beginsWith: 'Kernel')
or: [(package packageName beginsWith: 'Collections')
or: [(package packageName beginsWith: 'Exceptions')
or: [(package packageName beginsWith: 'SUnit')
or: [(package packageName beginsWith: 'System')
or: [package packageName includesSubstring: 'Test' caseSensitive: false]]]]]])
(see last condition)
The problem here is that watching code coverage of methods defined in TestCases makes no sense since those methods will always be executed by the test runner.
The solution I propose is to check that the class is not a subclass of TestCase before installing the MetaLink which will watch if the method is executed or not.
|
|
|
Priority: 5 – Fix If Time
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Later
|
Go to Case
|
|