Issue 627 in moose-technology: Glamour-Morphic unit tests are fragile to changes in the submorphs tree

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

Issue 627 in moose-technology: Glamour-Morphic unit tests are fragile to changes in the submorphs tree

moose-technology
Status: New
Owner: [hidden email]
CC: [hidden email]
Labels: Type-Engineering Priority-Low

New issue 627 by [hidden email]: Glamour-Morphic unit tests are  
fragile to changes in the submorphs tree
http://code.google.com/p/moose-technology/issues/detail?id=627

Glamour-Morphic unit tests contain code like this:

treeMorph := window submorphs last submorphs first submorphs first  
submorphs first submorphs first.
self assert: treeMorph class = LazyMorphTreeMorph.


Which is very fragile to any changes in the submorphs tree. I propose to  
replace each of these piece of code to something like:

treeMorph := self find: LazyMorphTreeMorph in: window

The method #find:in: could use something like Morph>>allMorphsDo: to find a  
corresponding morph in the submorphs tree.

I guess this would made the code slower but haven't tested it.

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 627 in moose-technology: Glamour-Morphic unit tests are fragile to changes in the submorphs tree

moose-technology

Comment #1 on issue 627 by [hidden email]: Glamour-Morphic unit  
tests are fragile to changes in the submorphs tree
http://code.google.com/p/moose-technology/issues/detail?id=627

Good point. We should change that :)

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 627 in moose-technology: Glamour-Morphic unit tests are fragile to changes in the submorphs tree

moose-technology
Updates:
        Status: Fixed
        Labels: Component-Glamour

Comment #2 on issue 627 by [hidden email]: Glamour-Morphic unit  
tests are fragile to changes in the submorphs tree
http://code.google.com/p/moose-technology/issues/detail?id=627

Name: Glamour-Tests-Morphic-DamienCassou.33
Author: DamienCassou
Time: 11 May 2011, 9:24:34 pm
UUID: ec2d3255-4e8d-45f1-8a09-cae086e69bc9
Ancestors: Glamour-Tests-Morphic-DamienCassou.32

- Adds GLMMorphicTest>>find:in: to avoid long sequences of #submorphs calls  
(issue 627)
- Refactor GLMTreeMorphicTest to use the new method + some more cleaning

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 627 in moose-technology: Glamour-Morphic unit tests are fragile to changes in the submorphs tree

moose-technology
Updates:
        Labels: Milestone-4.4

Comment #3 on issue 627 by [hidden email]: Glamour-Morphic unit  
tests are fragile to changes in the submorphs tree
http://code.google.com/p/moose-technology/issues/detail?id=627

Cool. Thanks.

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev