سؤال

Using concordion, it is possible to create "index" fixtures that use the concordion:run command to run a test. E.g.

<a concordion:run="concordion" href="myLengthytest.html">The lengthy test</a>

My tests are all set up to use SpringJunitRunner as per the tip here.

I tried excluding the fixtures from the failsafe plugin, but including the runner that calls them i.e.

                    <includes>
                        <include>**/*Test.java</include>
                        <include>**/*FixtureIndex.java</include>
                    </includes>
                    <excludes>
                        <exclude>**/*Fixture.java</exclude>
                    </excludes>

Where in this case the "Fixture" files are the fixtures and the "FixtureIndex" is the index file with the concordion:run statements. This seemed like a reasonable approach, but still seems to run the tests twice.. bizarrely.

I found this question elsewhere, but no useful answers were given, so having struck the the exact same problem, just thought I'd ask here :-)

هل كانت مفيدة؟

المحلول

this should work OK, unless the SpringJUnitRunner is introducing some issue.

You might want to try just using:

 <includes>
     <include>**/*FixtureIndex.java</include>
 </includes>

An example of this working is the concordion-extensions-demo project (without Spring).

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top