java - How do you avoid concordion:run running tests twice -
using concordion, possible create "index" fixtures use concordion:run command run test. e.g.
<a concordion:run="concordion" href="mylengthytest.html">the lengthy test</a>
my tests set use springjunitrunner per tip here.
i tried excluding fixtures failsafe plugin, including runner calls them i.e.
<includes> <include>**/*test.java</include> <include>**/*fixtureindex.java</include> </includes> <excludes> <exclude>**/*fixture.java</exclude> </excludes>
where in case "fixture" files fixtures , "fixtureindex" index file concordion:run statements. seemed reasonable approach, still seems run tests twice.. bizarrely.
i found question elsewhere, no useful answers given, having struck the exact same problem, thought i'd ask here :-)
this should work ok, unless springjunitrunner introducing issue.
you might want try using:
<includes> <include>**/*fixtureindex.java</include> </includes>
an example of working concordion-extensions-demo project (without spring).
Comments
Post a Comment