Skip to content

tast: improve unit test coverage #3

Closed
@GrantBirki

Description

@GrantBirki

This issue tracks work to increase unit test coverage for this project.

There are currently three forms of tests in this project:

  • script/test - runs unit tests
  • script/integration - runs integration tests
  • script/acceptance - runs acceptance tests in a docker compose stack

This issue tracks work to specifically increase unit test coverage via the script/test and spec/unit/* files.

The core functionality of this project works, but we need more test coverage for further development so we know we aren't breaking things as we go.

The file that shows the required coverage is here spec/unit/required_coverage_percentage.rb. As we go and increase test coverage, we should also increase the threshold in this file so we don't drop back down. We don't need 100% coverage at a first pass, but getting it as high as we can and ensuring our tests are robust and cover many edge cases is a good start.

As we go through and write tests we should do the following:

  • Ensure in-line comments match the code
  • Ensure all functions have valid YARD doc strings
  • Fix bugs as we find them
  • Keep the code DRY if it isn't already
  • Cleanup and unused bits or really confusing logic while maintaining existing functionality

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions