Changes for page Testing
Last modified by Vincent Massol on 2023/10/26 15:34
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -xwiki:XWiki.s urli1 +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