ArturSpirin/test_junkie

View on GitHub
test_junkie/reporter/xml_reporter.py

Summary

Maintainability
A
45 mins
Test Coverage

Avoid deeply nested control flow statements.
Open

                            for param, param_data in class_param_data.items():

                                test_status = param_data["status"]
                                if test_status != TestCategory.SUCCESS:
                                    test_status = "failure"
Severity: Major
Found in test_junkie/reporter/xml_reporter.py - About 45 mins to fix

    Refactor this function to reduce its Cognitive Complexity from 62 to the 15 allowed.
    Open

        def create_xml_report(write_file, suites):

    Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

    See

    There are no issues that match your filters.

    Category
    Status