Hi Laurent: On 19 Mar 2011, at 19:28, laurent laffont wrote:
Yes the tests defined in the superclass are not executed.
Another way is to define a Trait with your 9 tests, remove the superclass and have the other test classes use that Trait - tests for collections use this patterns, ProfStef tutorial tests too. Traits are unfortunately not really feasible, I think. I need to be Squeak 3.7 compatible.
Or, something that would actually be nice, is there a way that I can automatically parameterize my tests with data?
Could you explain a little more ? I guess thats basically what data-driven testing is about.
In my scenario it would be sufficient to be able to tell the test runner, here is the class MyTest, please run it with a set of input parameters. And then I give it an array {foo. bar. baz} and tell it to inject for each iteration one of the values into property current_foobar. So MyTest is executed three times instead of 1 time. Are there examples for such use cases somewhere? Thanks Stefan -- 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