Last modified by Lucas Charpentier (Sereza7) on 2024/01/19 11:27

<
From version < 112.1 >
edited by Vincent Massol
on 2019/02/15 16:28
To version < 113.1 >
edited by Vincent Massol
on 2019/02/16 14:38
>
Change comment: There is no comment for this version

Summary

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 works with both JUnit4 (implemented as a ##RunListener##) and JUnit5 (implemented as a ##TestExecutionListener##). Note that for JUnit5 it also works when executing tests in one's own IDE (and the ##xwiki.surefire.captureconsole.skip## Maven property is read from the 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  

Get Connected