Skip to content

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

Description

@gjorgic

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions