Overview
Tusk CoverBot runs as a scheduled daily or weekly cron job and generates unit tests for recently modified files with low line coverage. Think of this as Dependabot but for increasing unit test coverage across your repo. Go from 0 to 100% code coverage over time with minimal effort. CoverBot is complementary to the Tusk CI workflow which is triggered per commit to a PR. This feature is best suited for engineering organizations that have set unit test coverage goals.
Prerequisites
You need the following to begin using CoverBot:- Team Plan and up
- Enabled repo in Tusk
- Working Tusk test execution environment
- Using the following testing frameworks
How CoverBot Works
CoverBot is an async workflow so it is fully hands-off for your engineering team.Navigate to CoverBot page

Add new CoverBot
- Bot name
- Test execution environment
- Schedule for day(s) and time to run
- Max no. of symbols to generate tests for
- Default reviewers (optional)
- File patterns for files/directories to focus on (optional)

Creates branch

Analyzes code coverage
Backfills unit tests
Creates PR/MR
Assigns PR/MR reviewer
Review and merge PR/MR
FAQs
Who should review CoverBot PRs?
Who should review CoverBot PRs?
Is there a limit to the number of files that Tusk will generate tests for?
Is there a limit to the number of files that Tusk will generate tests for?
Why hasn't CoverBot created a PR at my pre-determined schedule?
Why hasn't CoverBot created a PR at my pre-determined schedule?
Can I specify directories that CoverBot should not be writing tests for?
Can I specify directories that CoverBot should not be writing tests for?
Does CoverBot guarantee 100% line coverage for the files that it is backfilling tests for?
Does CoverBot guarantee 100% line coverage for the files that it is backfilling tests for?
Does Tusk add failing tests to the CoverBot PR?
Does Tusk add failing tests to the CoverBot PR?
Will CoverBot uncover edge cases in the system under test (SUT)?
Will CoverBot uncover edge cases in the system under test (SUT)?