Hi, this is not issue but proposal
I'm using codeception on my symfony projects, and now i want connect my tests with acceptance criteria on JIRA;
Jira has something called automation key to match tests from xml report with acceptance; but as i can see, JIRA takes only attribute name from testcase node; and that name is actually method name of my test; This can cause issue with key duplication over multiple classes or even multiple suites;
For now i create custom attribute Id and modify JUnitReporter class to read this attribute, so i can redefine name value for each testcase simply by defining id on each test method;
<?php
class FirstCest
{
#[Attribute\Id('TEST-AC-12')]
public function test_something(FunctionalTester $I)
{
// ...
}
}
What you think about described approach, and would it be good PR?
Hi, this is not issue but proposal
I'm using codeception on my symfony projects, and now i want connect my tests with acceptance criteria on JIRA;
Jira has something called automation key to match tests from xml report with acceptance; but as i can see, JIRA takes only attribute
namefrom testcase node; and that name is actually method name of my test; This can cause issue with key duplication over multiple classes or even multiple suites;For now i create custom attribute
Idand modifyJUnitReporterclass to read this attribute, so i can redefinenamevalue for each testcase simply by defining id on each test method;What you think about described approach, and would it be good PR?