In this tutorial, we will create some tests in PHP using PHPUnit.
- Install the PHP DOM extension (some distros don't include it by default)
- Install PHPUnit
After running the tests and generating the JUnit XML report (e.g., php-results.xml), it can be imported to Xray (either by the REST API or through the Import Execution Results action within the Test Execution).
JUnit's Test Case is mapped to a Generic Test in Jira, and the Generic Test Definition field contains the name of the test class concatenated with the method that implements the test case.
The Execution Details of the Generic Test contains information about the Test Suite, which in this case corresponds to the name of the test class.