Hi folks.

I'm finding I can't run isolated sets of behaviours, due to the sudden proliferation of some magic code, namely:

       return new BehavioursLoader(getClass()).loadBehaviours();

This magic is a lot less expressive than listing the behaviours in each extension (especially since many of them only have one behaviour class).

I was trying to run jbehave.AllBehaviours, which contains these:

               jbehave.core.AllBehaviours.class,
               jbehave.ant.AllBehaviours.class,
               jbehave.jmock.AllBehaviours.class,
               jbehave.junit.AllBehaviours.class,
               jbehave.core.story.AllBehaviours.class

However, I was getting failures from jbehave.extensions.threaded.swing. Not good (the fact it was running at all, not the errors).

So, I've reverted the above AllBehaviours classes to hard-wired behaviours.

I noticed in reverting them that the build now runs the same 168 behaviours twice, so this magic was also masking a duplication in the build.xml.

Please, in future, *do not* make changes like this without asking first.

Thanks,
Dan

Reply via email to