Description
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 testsscript/integration
- runs integration testsscript/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