Skip to content

Refactor suite_report.py #35

Open
Open
@t00sa

Description

@t00sa

This builds on the changes in #33 and refactors suite_report.py. The goals are to:

  • fix compliance with pylint as far as possible
  • improve code structure by
    • splitting the monolithic SuiteReport class
    • moving global variables into classes
    • separating trac table generation on a separate class
    • making internal methods private
  • use pathlib and associated functions in place of os.path and strings
  • improve/add google-style docstrings
  • update exception handling by
    • using appropriate builtin exceptions
    • removing broad except Exception catches
    • moving exception handling to the top level
    • using custom exceptions where necessary

The result should be a modernised version of the script which produces the same - or very similar - output as the unmodernised version.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions