On Sun, Jan 15, 2012 at 11:27 AM, Vincent Massol <vincent(a)massol.net> wrote:
Hi devs,
I've started an experiment to have colocated functional tests (CFT), which means
having the functional tests located where the functional domain sources are located
instead of in XE.
The rationale for this was:
* Have everything about a functional domain self-contained (source and all tests)
* Making it easy to run only tests for a given functional domain
* Move page objects to the functional domain too
It would be also be easy for an application developer to copy and
existing test module (or ideally to use an archetype) and write tests
for his application.
I had to copy the entire distribution to achieve this in the past.
[snip]
Solutions/ideas:
* One idea to overcome A and C would to have the following setup:
** Keep functional test modules colocated but have them generate a test JAR
** Still allow running functional tests from the colocated module (this makes it easy to
verify no regression was introduced when making changes to a given domain)
** Have functional tests in XE depend on the colocated functional test module JARs and
configure Jenkins to run all functional tests from XE only
* Another solution to overcome C is to auto-discover the port to use in our XWiki startup
script (and save it in a file so that the stop script can use it).
I think the first proposal is the best one and brings the best of the 2 worlds.
Indeed the first proposal sounds like the best. Considering the small
number of XE instance it is reasonable to run on an average machine
the second one sounds overkill.
JV.