View Issue Details

IDProjectCategoryView StatusLast Update
0032816mantisbttoolspublic2023-10-31 16:32
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Target Version2.26.0Fixed in Version2.26.0 
Summary0032816: Use phpunit.xml to define Test Suites
Description

Until today, the test suites were defined in "AllTests.php" files using the PHPUnit\Framework\TestSuite class, which is meant for internal use.

The official, documented method to compose a test suite is to use XML configuration (phpunit.xml).

TagsNo tags attached.

Relationships

related to 0032810 closeddregad Ugrade to PHPUnit 8.5 and adapt test suite 
related to 0032815 closeddregad Error when executing the complete PHPUnit test suite with AllTests.php 

Activities

Related Changesets

MantisBT: master f550281a

2023-08-09 19:52

dregad


Details Diff
Define the Test Suites with a phpunit.xml file

Until today, the test suites were defined in "AllTests.php" files using
the PHPUnit\Framework\TestSuite class, which is meant for internal use.

The official, documented method to compose a test suite is to use XML
configuration.

This commit introduces the phpunit.xml, which replaces the AllTests.php
scripts, and updates documentation and TravisCI script.

Fixes 0032816
Affected Issues
0032816
mod - build/travis_script.sh Diff File
mod - docbook/Developers_Guide/en-US/Contributors.xml Diff File
add - phpunit.xml Diff File
rm - tests/AllTests.php Diff
rm - tests/Mantis/AllTests.php Diff
rm - tests/rest/AllTests.php Diff
rm - tests/soap/AllTests.php Diff