View Issue Details

IDProjectCategoryView StatusLast Update
0033755mantisbttoolspublic2024-09-29 13:15
Reporterdregad Assigned Todregad  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Target Version2.27.0Fixed in Version2.27.0 
Summary0033755: Enable Xdebug to facilitate PHPUnit tests troubleshooting
Description

When PHPUnit tests execution is failing for REST or SOAP API, it is sometimes difficult to troubleshoot the root cause, as debugging the test cases themselves does not allow tracing API endpoints' code.

We need a setting in the PHPUnit bootstrap.php file that will optionally start the Xdebug session when needed.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master e082b0ce

2024-02-16 20:34

dregad


Details Diff
Tests: new MANTIS_TESTSUITE_XDEBUG_SESSION setting

Allows debugging of SOAP and REST API endpoints when running PHPUnit.

If not empty, sets the XDEBUG_SESSION cookie with the config's value to
enable Xdebug.

Fixes 0033755
Affected Issues
0033755
mod - tests/bootstrap.php.sample Diff File
mod - tests/core/RequestBuilder.php Diff File
mod - tests/rest/RestBase.php Diff File
mod - tests/soap/SoapBase.php Diff File