An error occurred while loading the file. Please try again.
-
Christian Kuhn authored
phpunit has a default-enabled feature to write test result to a cache file. phpunit however has no option to only run failed tests since those tests may have an @depends annatation and its hard for phpunit to sort this out. The cache file is of rather little use and mostly only pollutes the filesystem in real life. When developing core tests, developer typically use a filter or a path constraint to execute a sub set of tests only. Additionally, with multiple phpunit .xml files in one directory, the cache file overrides itself when different suites are executed. The patch disables that cache file by default in phpunit xml files. If anyone still wants to run the test suite and have tests that failed executed first, the option can be enabled on a per-use basis, example using runTests.sh: # Run suite and create cache file Build/Scripts/runTests.sh -e '--cache-result' # Run tests that failed first and update cache file Build/Scripts/runTests.sh -e '--cache-result --order-by=depends,defect' Change-Id: Ia385b604eec2b49224f729cc335261ac3f042958 Resolves: #95702 Releases: master Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71890 Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Wouter Wolters <typo3@wouterwolters.nl> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch>
589df09c