Changes for page Testing

Last modified by Vincent Massol on 2023/10/26 15:34

<
From version < 148.1 >
edited by Simon Urli
on 2020/05/06 16:17
To version < 149.1 >
edited by Vincent Massol
on 2020/05/28 18:46
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.surli
1 +xwiki:XWiki.VincentMassol
Content
... ... @@ -13,7 +13,6 @@
13 13  * Code committed must have associated automated tests.
14 14  * There are [[checks in the build>>Community.Building||anchor="HAutomaticChecks"]] (in the ##quality## profile - executed automatically on the CI) to ensure that committed code:
15 15  ** do not reduce the total test coverage for that module
16 -** do not decrease the mutation score for that module. Note: We use mutation score as a metric to gauge the quality of our tests.
17 17  * Developers run unit and functional tests on their machines daily and frequently.
18 18  * Unit and functional tests are executed by the CI, at each commit.
19 19  * Most automated functional tests are currently running in a single environment (HSQLDB/Jetty/Firefox). However, we've started to use Docked-based testing to test automatically using several configurations and are migrating more and more tests to that. There are jobs in XWiki's CI that execute tests in all configurations regularly (not at each commit though but as much as possible).
... ... @@ -265,17 +265,3 @@
265 265  
266 266  See the [[TestCoverage]] page.
267 267  
268 -= Mutation Testing =
269 -
270 -We use [[PIT/Descartes>>https://github.com/STAMP-project/pitest-descartes]].
271 -
272 -You can generate a report for the current module by running:
273 -
274 -{{code}}
275 -mvn clean install -Pquality -Dxwiki.pitest.skip=false -Djacoco.skip=true
276 -{{/code}}
277 -
278 -This will generate 2 reports:
279 -
280 -* The PIT one in the ##target/pit-reports/<timestamp>## directory
281 -* The Descartes one, showing the Pseudo Tested and Partially Tested code, which are good indicators of what needs to be fixed, in the ##target/pit-reports/<timestamp>/issues## directory

Get Connected