Hi all,
I'm looking for advice on how to run unit tests on multiple machines when
platform modules depend on each other. There must be a simpler & more
flexible way of doing this than I have been using.
Background ...
We have 30+ modules in our Netbeans Platform based product, and as
expected, many modules rely on other modules for unit testing.
To achieve this we modify the project.properties file to be like ...
<snip>
javac.source=1.7
test.unit.run.cp.extra=\
C:/my/path/to/product/testcfg:\
C:/my/path/to/product/build/cluster/modules/com-acme-impl-nmb1.jar:\
C:/my/path/to/product/build/cluster/modules/com-acme-nmb2.jar:
</snip>
Note these are currently hard coded - and I would really like to change
that to make it easier to run unit testing on other machines. They are hard
coded because that works for both
- individual modules unit tests, and
- module suite unit tests (which launches each of the individual module
unit tests)
Many years ago (10+?) I used a relative path, but that is not good enough
because the relative path is different depending on if you are running unit
tests for an individual module, or for the whole module suite.
Any suggestions would be most appreciated.
Many thanks,
-Damian