Manuscript (Case [Issue]22232) SUnit - The TestRunner should allow to do code coverage on packages having "test" in the their name

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]22232) SUnit - The TestRunner should allow to do code coverage on packages having "test" in the their name

Pharo Issue Tracker
Manuscript Notification
avatar
Enhancement in Project:  SUnit: 1. Pharo Image  •  You are subscribed to this case
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 Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Later

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker