seleniummavenjsfmaven-dependency

Avoid maven cyclic dependency with scope test


I have the next problem. "A" library contains custom JSF components. "B" library contains Selenium tests for these custom components, and some others (Primefaces JSF components).

When I develop "A", I want to test any change using "B" in order to check if I've broken something. So "A" needs "B" dependency in test scope.

When I develop "B", I want to test any change using "A" for deploying a website on the fly at testing-time in order to check if I've broken something. So "B" needs "A" dependency in test scope.

So, How is the best way to avoid the cyclic dependency and get my goal?


Solution

  • you may have to choose between:

    In general you dont have the need to test your test tool except if your tool make some complex stuff. In this case I do some small test sets that are autonomous.