If you want locally that your "should'* methods are seen as test by Nautilus, you should create a class inheriting from 
AbstractMethodIconAction

and more or less copy the behaviour of MethodIsTestAction

Ben

On Mar 3, 2013, at 3:59 PM, Stefan Marr <smalltalk@stefan-marr.de> wrote:

Hi Benjamin:

On 03 Mar 2013, at 10:55, Benjamin wrote:

Because some one decided that methods starting with "should" are also tests

I added that change, because I didn't see an easy and extensible way to do it differently.

Please see https://code.google.com/p/pharo/issues/detail?id=7367

If you could provide me with a proper hook in Nautilus, or use the facilities in SUnit to determine whether a method is a test that would be much better and avoid Stephane's problems.

Thanks
Stefan




Ben

On Mar 3, 2013, at 10:38 AM, St�phane Ducasse <stephane.ducasse@inria.fr> wrote:

Hi ben

I do not know if you saw this behavior but when I press the button on the class of a test methods that are not tests
are also executed and reported as failures.
For example I got

XMLNodeTest>>should: aBlock enumerate: aCollection
| enumerated |

enumerated := OrderedCollection new.
aBlock value: [:each | enumerated add: each].
self assert: enumerated = aCollection asOrderedCollection.

executed while it is an helper.
With the testrunner I get a class with 100% green tests now.
but not with nautilus.

Stef


--
Stefan Marr
Software Languages Lab
Vrije Universiteit Brussel
Pleinlaan 2 / B-1050 Brussels / Belgium
http://soft.vub.ac.be/~smarr
Phone: +32 2 629 2974
Fax:   +32 2 629 3525