-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 23/01/15 11:42, Max Rydahl Andersen wrote:
>
One drawback of not having testsuites is though that we loose the ability to easily run
a
group of tests from eclipse or maven.
Anyone found a good way of doing that via junit ? (testng has groups but tycho
surefire/junit
does not support that afaik)
Yes. Designer has had a test-aggregate plugin for all its junit tests for a while now.
[1]
Based on an idea from my last job, the TestDesignerTestGatherer[2] class is a junit 3
style test
suite.
It essentially runs through all the bundles in the running platfrom, searching for (in
this case)
AllTests classes then adds them to the suite. The suite is executed via junit and the all
the
tests individually executed. This works in both Eclipse (using a single junit launcher)
and in
maven (by making the plugin a test plugin and adding TestGatherer to an AllTests suite
class).
This mechanism can be easily generalised to work with different test names if preferred.
PGR
[1]
https://github.com/Teiid-Designer/teiid-designer/tree/master/test-aggrega...
[2]
https://github.com/Teiid-Designer/teiid-designer/blob/master/test-aggrega...
- --
Paul Richardson
* p.g.richardson(a)redhat.com
* pgrichardson(a)linux.com
* mob: +44 (0)9780 869490
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJUwlN3AAoJEG7P2ul73V7cyuwH/RDLXiY+pCDOqYei+9XEuiHj
+Bjp7Gw8KX/n2H3CkkPkISXiB4shKfiO+KWIB7W5IqcgQH3RTQuUZ/EbXoZT1il9
oAc5nijf0tbR+FAUceWTK25U1DoVPYdpHWZRXOBJuZM6HDTWXhFZxEeC/tswm0J+
gf5KxSxmr7nDpToBRfnF/SHENixyqYkH4k/IEbL12v9tabk/kIgik8HL+baB1gwZ
KkDGMltbhYHvVo79hQjQ3pERkJxAhPOttaiOkjPa2hczOJVbEbooIdg7dAdCXm7X
qoltIi6imzjmGTSgmLqOU4euL6jq++OznPukpYNlubAZdmrn+LU5iNdcw/K8brg=
=l3RV
-----END PGP SIGNATURE-----