Test 8 Untested Modules in One Night
Launch 8 parallel Devin sessions overnight — each one writes unit tests for a different low-coverage module and opens a PR by morning.Create a test-writing playbook
Your e-commerce monorepo has 30+ modules but only a handful have meaningful test coverage. You want to go from 44% overall coverage to 80% — starting with the 8 worst offenders. Before launching parallel sessions, you need a playbook that ensures all 8 sessions write tests the same way.Use Advanced Devin to create the playbook — click Advanced below the input box, select the Create Playbook tab, and describe your testing conventions:This playbook becomes the shared instruction set for every parallel session. You can also add Knowledge entries about your test utilities, mocking patterns, or any project-specific quirks (e.g., “always call
resetMocks() in afterEach”).Launch 8 parallel sessions at 6 PM
At the end of your workday, open Advanced Devin by clicking Advanced below the input box on the Devin home page, then select the Start Batch Sessions tab.
- Select your test-writing playbook from the dropdown
- Describe the task in the prompt:
- Review the proposed sessions — Advanced Devin lists each module with its current coverage and confirms which sessions it will create:
- Approve the batch and close your laptop. All 8 sessions launch simultaneously on separate Devin machines, each following your playbook independently.
Wake up to 8 PRs
By morning, each session has finished and opened its own PR. You’ll see 8 PRs in your repository, each containing new test files and a coverage summary:Merge the PRs in any order — since each session only adds new test files to its own module, conflicts are rare. If two sessions touched a shared test helper, resolve the conflict manually or ask Devin to fix it.
Run a second batch for the next tier
One overnight batch won’t hit your 80% target across the entire codebase. The next evening, run a follow-up for the next tier of modules:You can also shift from unit tests to integration tests for critical user flows:Two nights of batch sessions can take a codebase from under 50% coverage to over 80% — work that would take an engineer weeks of dedicated effort.
