You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is for tracking the progress of writing unit tests for the Controller, which is mostly taking place on the controller-unit-tests branch.
Contributions
I'm happy to take pull requests which helps further this issue along, but be aware that I may request changes to better fit the project as I would any other PR.
Some important things to keep in mind:
Dependencies must be mocked (dependencies in this case simply means anything that is not easily controllable in a test)
Rewriting existing Controller code to support the mocking of dependencies is perfectly acceptable and in fact highly encouraged.
Tests should be independent of one another. This means that shared structs should not be used and instead a new one should be allocated for each test.
Coverage
Total Coverage: 68.7%
jobhealth
job_health.go - 100.0%
mock.go - 80.0%
structs.go - 0.0%
library
commanddecider
cmd_decider.go - 97.4%
cache.go - 96.3%
file_discovery.go - 45.8%
manager.go - 0.0%
settings
mock.go - 92.9%
settings.go - 46.2%
sqlite
database.go - 0.0%
file_cache.go - 0.0%
health_checker - 14.8%
library_manager - 0.0%
runner_comm.go - 0.0%
user_interfacer.go - 0.0%
mocks.go - 100.0%
run.go - 96.7%
structs.go - 0.0%
util.go - 100.0%
The text was updated successfully, but these errors were encountered:
Purpose
This issue is for tracking the progress of writing unit tests for the Controller, which is mostly taking place on the
controller-unit-tests
branch.Contributions
I'm happy to take pull requests which helps further this issue along, but be aware that I may request changes to better fit the project as I would any other PR.
Some important things to keep in mind:
Coverage
Total Coverage: 68.7%
The text was updated successfully, but these errors were encountered: