From version 146.1
edited by Vincent Massol
on 2019/05/21 09:36
To version 147.1
edited by Simon Urli
on 2019/06/27 11:25
Change comment: Add info about adding maven dependency for func test

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.VincentMassol
1 +xwiki:XWiki.surli
Content
... ... @@ -204,6 +204,15 @@
204 204  11. Depending on how you are starting the functional tests, you`d have to either add the system property in your maven build (surefire plugin configuration) or in your IDE (run configuration)
205 205  11. Read [[Selenium's FirefoxDriver documentation>>https://code.google.com/p/selenium/wiki/FirefoxDriver]] for more information and options
206 206  
207 +=== Adding a new maven dependency for minimal war ===
208 +
209 +All our functional testing are linked to the build of a custom instance of XWiki based on the dependencies contained in the pom.xml of the test.
210 +However, those dependencies are added to a minimal war that is built using dependencies located on different places dependending if it is a docker test, or an older functional test.
211 +
212 +So when a new Maven dependency is added for all distributions, it should be declared in three places:
213 + * in {{code}}xwiki-platform-minimaldependencies/pom.xml{{/code}}: this will allow the dependency to be retrieved for both docker tests, and for the standard distribution
214 + * in {{code}}xwiki-tools-packager-plugin{{/code}}, in both {{code}}pom.xml{{/code}} and {{code}}PackageMojo.java{{/code}}: those are used for older functional tests.
215 +
207 207  = XHTML, CSS & WCAG Validations =
208 208  
209 209  * We are using JUnit to validate that all XWiki pages produce valid XHTML.

Get Connected