Seedlabs

MergeGate Cover: a PR coverage gate that writes its own missing tests

A tool that finds gaps in code testing and automatically writes the missing tests to allow a merge.

A merge gate that measures coverage on a pull request's changed lines and, where lines are uncovered, automatically generates and repairs the missing unit tests — so coverage mandates stop blocking PRs and start fixing them.

Computer ScienceSoftware Testing and Debugging Techniques
LLM Evaluation and BenchmarkingRegulated and quality-mandated software delivery — automated coverage compliance in CI/CD

Concept

A merge gate for GitHub/GitLab that enforces coverage on a pull request's changed lines — and, when lines are uncovered, generates the missing unit tests itself instead of just blocking. Flow: compute diff coverage; for each uncovered changed class or method, run coverage-guided LLM test generation with template-based repair until the tests pass and close the gap; post the generated tests as a reviewable PR suggestion; block the merge only if auto-remediation fails after a bounded number of iterations. This turns coverage mandates from a developer tax into an automated step: the gate both measures and fixes. Java/JUnit repositories first, where the underlying generation quality is demonstrated.

Why now

Today's diff-coverage gates (Codecov, Coveralls, GitLab MR settings) can only report and block. TestART [0] shows that coverage-guided generation with template-based repair produces tests dependable enough to lean on: +20% coverage over LLM baselines, better-than-EvoSuite coverage with half the test count, and an 18% pass-rate gain from repairing hallucinated compile/runtime errors. The older empirical evaluation [1] established that LLM tests do not reach adequate coverage without exactly this kind of feedback loop — which is why an auto-remediating gate was not credible before. Evidence is benchmark-scale and Java-centric, so the launch scope should be Java/JUnit repositories with existing coverage tooling (JaCoCo).

Written by GLM · 6 Dec 2026

AI assessment

Backed by 2 papers88

An exceptionally focused and evidence-backed tool that transforms a common developer friction point (coverage mandates) into an automated remediation workflow.

Evidence strength
5/5
The idea is strongly supported by TestART's demonstrated success in using coverage-guided feedback and template-based repair to outperform baselines in Java/JUnit environments.
Market pull
4/5
Regulated industries have strict coverage mandates, creating a high-urgency pain point where developers are blocked by 'coverage taxes'.
Novelty & moat
3/5
While similar to other 'CI-gate' ideas in the catalog, it focuses on a distinct mechanism (coverage-gap filling) rather than security verification or regression patching.
Feasibility
5/5
Building a prototype is highly feasible given the existence of JaCoCo for coverage measurement and the availability of LLM APIs for the generation/repair loop.
Wedge clarity
5/5
The focus on Java/JUnit repositories as a starting point provides a sharp, technically viable entry point before expanding to other languages.
Simplicity / focus
5/5
The product is a single, focused utility—a merge gate that fixes coverage—avoiding the 'platform' trap.

Scored by Gemma 4 · 6 Dec 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.

Act on this idea

Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.

Who benefits

  • Codecovcompany

    Its coverage gating is report-and-block today; auto-remediation of uncovered PR lines is a high-value premium tier that only becomes credible with repaired, coverage-guided generated tests.

  • GitLabcompany

    Merge-request approval rules already include coverage checks; a gate that also writes the missing tests converts a compliance feature into a productivity feature for its higher-tier buyers.

  • CircleCIcompany

    A CI provider with coverage integrations; an auto-remediating coverage gate is a differentiated add-on for its Java-heavy enterprise customers.

  • Coverallscompany

    A coverage reporting service; adding remediation gives it a proactive capability that report-only competitors lack.

Research it builds on

  1. An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generation
    Max Schäfer, Sarah Nadi, Aryaz Eghbali et al. · 2023 · 512 citations
    All ideas from this paper →
  2. TestART: Improving LLM-based Unit Test ing via Co-evolution of A utomated Generation and R epair I t eration
    Siqi Gu, Quanjun Zhang, Kecheng Li et al. · 2026 · 71 citations
    All ideas from this paper →
Leave feedback
feasibility