mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
Include test name in JUnit testcase name
Azure does not show the classname attribute in any convenient way, and the file name is the part we usually care about.
This commit is contained in:
parent
d20fc5a192
commit
c02dfddda3
1 changed files with 2 additions and 2 deletions
|
@ -3444,8 +3444,8 @@ function junit_mark_test_as($type, $file_name, $test_name, $time = null, $messag
|
|||
}, $escaped_details);
|
||||
$escaped_message = htmlspecialchars($message, ENT_QUOTES, 'UTF-8');
|
||||
|
||||
$escaped_test_name = htmlspecialchars($test_name, ENT_QUOTES);
|
||||
$JUNIT['files'][$file_name]['xml'] = "<testcase classname='$file_name' name='$escaped_test_name' time='$time'>\n";
|
||||
$escaped_test_name = htmlspecialchars($file_name . ' (' . $test_name . ')', ENT_QUOTES);
|
||||
$JUNIT['files'][$file_name]['xml'] = "<testcase name='$escaped_test_name' time='$time'>\n";
|
||||
|
||||
if (is_array($type)) {
|
||||
$output_type = $type[0] . 'ED';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue