Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Test Key/Id for JUnitReport XML for JIRA AIO Tests #6778

Open
gjorgic opened this issue Aug 14, 2024 · 0 comments
Open

Proposal: Test Key/Id for JUnitReport XML for JIRA AIO Tests #6778

gjorgic opened this issue Aug 14, 2024 · 0 comments

Comments

@gjorgic
Copy link

gjorgic commented Aug 14, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant