Changes for page Building XWiki from sources
Last modified by Lucas Charpentier (Sereza7) on 2024/01/19 11:27
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -211,7 +211,7 @@ 211 211 *** [[xwiki-commons pitest job >>http://ci.xwiki.org/job/xwiki-commons_pitest/]] 212 212 *** [[xwiki-rendering pitest job >>http://ci.xwiki.org/job/xwiki-rendering_pitest/]] 213 213 *** [[xwiki-platform pitest job >>http://ci.xwiki.org/job/xwiki-platform_pitest/]] 214 -* Verify that JUnit tests don't output content to stdout or stderr. Tests are supposed to either configure the code to not output anything or if it's expected then they're supposed to [[catch the logs and assert them>>dev:Community.Testing.JavaUnitTesting.WebHome#HCapturingandAssertingLogs]]. This workswithbothJUnit4(implementedas a##RunListener##)andJUnit5(implemented asa ##TestExecutionListener##).Note thatforJUnit5it also works when executingtests inone'sown IDE (andthe ##xwiki.surefire.captureconsole.skip## Maven propertyisreadfromthe current ##pom.xml##).214 +* Verify that JUnit tests don't output content to stdout or stderr. Tests are supposed to either configure the code to not output anything or if it's expected then they're supposed to [[catch the logs and assert them>>dev:Community.Testing.JavaUnitTesting.WebHome#HCapturingandAssertingLogs]]. Note that this check is also executing for JUnit5 tests executed in your IDE (if the ##pom.xml## file in the current directory doesn't have the ##xwiki.surefire.captureconsole.skip## Maven property set to true). 215 215 216 216 = Tips = 217 217