Skip to content

Improve Test Coverage #79

@MRichards99

Description

@MRichards99

Description:
The coverage on this repo is currently at ~66%. While code is only added to this repo infrequently, it would be a major benefit if the coverage could be greatly improved so we can be more certain that a future change won't break existing functionality.

You should extend the existing test classes and create new ones where needed to increase the test coverage to over 90%. If you can also spot where more test cases of an existing test are needed (e.g. different user input that could result in a different output) then please add these too.

Code coverage can be checked when the CI runs and a coverage report is uploaded to Codecov as well as running the tests locally using the following command:
nox -p [PY_VERSION] -s tests -- --cov=scigateway_auth --cov-report=term

Acceptance criteria:

  • Coverage should be a minimum of 90%+, ideally 95%+

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