Skip to content

Update TestSuite class to report test-failure with correct class/method name instead of 'warning(junit.framework.TestSuite)' #1782

Closed as not planned
@kishoretak

Description

@kishoretak

The framework reports the test-class constructor initialisation with a hardcoded method name warning and class-name as TestSuite class and ignore the actual method name and class-name.
While its somewhat easy to find the issue locally when there are a few test-failure but in-case of CI pipeline where thousands of test are running and we rely on XML report, its not possible to differentiate between such test-failures and auto-assign to test-class owner as test-class itself is missing.
The class does optimise when the non parameterised constructor is failing by reporting a single test-failure instead of reporting all the test-methods with same error and there is might still be okay to keep a dummy test-name, however it should use the correct class-name.
And incase of non default constructor failure, it should report with correct test-name as well along with test-class name.

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