Issue 4925 in pharo: Test Classes Hierarchy not as expected

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

Issue 4925 in pharo: Test Classes Hierarchy not as expected

pharo
Status: New
Owner: ----
Labels: Milestone-1.4 Type-Bug

New issue 4925 by [hidden email]: Test Classes Hierarchy not as  
expected
http://code.google.com/p/pharo/issues/detail?id=4925

Pharo core version: <Pharo1.4a>
Virtual machine used: <Squeak>

I think its a bug, it may be the expected behaviour.

Let's suppose I have defined

TestCase subclass: #MyTestClass, with 3 tests methods.

if I now define

MyTestClass subclass: #NewTestClass, with no tests methods.

When running 'NewTestClass' on the TestRunner, it will ran 'MyTestClass'  
tests. However if I now define on 'NewTestClass' a new test method, when  
running 'NewTestClass' it will only run the recently added test method and  
not it along with the methods of the mother class.

ps: Pardon my english, it's quite rusted.




_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4925 in pharo: Test Classes Hierarchy not as expected

pharo

Comment #1 on issue 4925 by [hidden email]: Test Classes Hierarchy  
not as expected
http://code.google.com/p/pharo/issues/detail?id=4925

Sorry for the double post, I've uploaded a video to YouTube to illustrate  
the bug
http://www.youtube.com/watch?v=OXUwfHotY4g


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4925 in pharo: Test Classes Hierarchy not as expected

pharo
Updates:
        Status: Accepted

Comment #2 on issue 4925 by [hidden email]: Test Classes Hierarchy  
not as expected
http://code.google.com/p/pharo/issues/detail?id=4925

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4925 in pharo: Test Classes Hierarchy not as expected

pharo
In reply to this post by pharo
Updates:
        Status: Invalid

Comment #4 on issue 4925 by [hidden email]: Test Classes Hierarchy  
not as expected
http://code.google.com/p/pharo/issues/detail?id=4925

This is not a bug,

implement #shouldInheritSelectors in your test case returning true.
see TestCase>>#shouldInheritSelectors.

by default only selectors from an abstract super test case (see  
TestCase>>#isAbstract) are run


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