FogBugz (Case [Issue]20549) CI and Bugtracker - CompiledMethod >> isTestMethod should invert the query clauses

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

FogBugz (Case [Issue]20549) CI and Bugtracker - CompiledMethod >> isTestMethod should invert the query clauses

Pharo Issue Tracker
FogBugz Notification
avatar
Guillermo Polito opened Case 20549: CompiledMethod >> isTestMethod should invert the query clauses and assigned it to Everyone:
Enhancement in Project:  CI and Bugtracker: 1. Pharo Image  •  You are subscribed to this case
Right now it reads as this:

isTestMethod
"Is the receiver a TestCase test method?"

self methodClass isTestCase
ifFalse: [ ^ false ].
self numArgs isZero
ifFalse: [ ^ false ].

"unary selectors starting with 'should' are supposed to be treated as test methods too"
^ (self selector beginsWith: 'test') or: [ self selector beginsWith: 'should' ]

However, we should filter by the selector first, before asking the class, which is the information that belongs to the method.
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 FogBugz notifications anymore? Update your preferences.

FogBugz

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