Study Finds No Significant Difference in Test File Prevalence Between Vibe-Coded Projects and Matched Controls
Vibe coding means telling a generative AI what to build and refining it through prompts without closely examining the code it produces. If developers have a limited understanding of the code, how can they tell whether the software works as intended?
Three researchers affiliated with institutions in Brazil and Canada submitted a paper examining tests in projects identified as vibe-coded. Submitted at 23:00:53 UTC on November 27, 2026, it appeared in arXiv's December 1 list of new papers. Its title is "Do Vibe-Coded Projects Contain Tests? An Empirical Study."
The study examined 335 public GitHub projects whose developers explicitly identified them as vibe-coded. It included projects created from February 2025 onward with at least five GitHub stars, a measure of interest or approval. Archived repositories and those containing no software implementation, such as collections of reference materials, were excluded.
The researchers counted files with source code extensions that followed test naming conventions or were stored in test directories. They found test files in 177 projects, or 52.8%. Classifying files by location and name can miss tests written inside implementation files, such as some Rust unit tests.
The CSV for the vibe-coded group in the researchers' published dataset contains 336 repositories. The count with test files matches the paper at 177, but the percentage across all CSV rows is 52.7%. Because the totals differ by one, the comparisons below use the paper's figures.
If developers who publicly identify their methods work differently from those who do not, the broader prevalence of test files in vibe-coded projects may differ from the result here.
What comparisons with popular projects show
The popular projects used for comparison were more likely to contain test files. The share was 88.4% for popular projects with similar languages and creation dates, 91.6% for popular projects matched on languages regardless of creation date, and 94.6% for a group drawn from the most-starred repositories on GitHub.
In the main sample, the median project had nine stars and 35 commits. A comparison with projects at similar scales and stages of development also matters when interpreting the prevalence of tests.
Separately from the popular projects, the researchers selected 335 controls with similar distributions of languages, creation dates, commits, and stars. They found test files in 191 of them, or 57.0%. The difference from the vibe-coded group was not statistically significant. Among projects that had test files, the median was 13 in the vibe-coded group and 15 in the control group.
Popular projects' higher rates are a useful reference for testing practices. Using them as the only benchmark could lead readers to attribute differences stemming from project size or development time to vibe coding. The selection criteria did not rule out AI use in the control group, so the comparison does not isolate development method. A nonsignificant result does not establish that the two groups have equal rates.
When tests first appear in development
The researchers also examined commit histories for the 177 projects with test files. In 86, test files were present from the first commit. The median first appearance was in the second commit.
Across projects, the median share of commits that added, changed, or removed test files was 25%. The histories show both early adoption and continued changes. That early start may surprise anyone who expects tests to be added all at once later in development.
About 30% had signs of tests in CI/CD configuration
Once tests exist, developers need to check that changes preserve intended behavior. To assess the use of continuous integration and continuous delivery (CI/CD), the researchers looked for configuration files for five tools, including GitHub Actions. These tools automate tasks such as testing and building when code changes.
The paper found CI/CD configuration files in 146 of 335 projects, or 43.6%. It found test-related terms in the filenames or in configuration text outside comments for 101 projects, or 30.1% of the sample. The public CSV agrees on the counts of 146 and 101. Out of 336 projects, the respective shares are 43.5% and 30.1%.
The study counted filenames and configuration text. It did not assess whether the configurations were correct or whether tests actually ran and passed. Test files alone cannot catch a regression if the tests are never run after a code change.
Projects created in 2026 were more likely to contain test files
The figures varied with creation date. Of 105 projects created in 2025, 45 had test files, or 42.9%. Of 230 created between January and November 2026, 132 had test files, or 57.4%. The share reached 72.2% among projects created in October or November 2026. In the public CSV, 132 of the 231 projects created in 2026 had test files, or 57.1%. The October–November count of 26 out of 36 matches the percentage in the paper.
The researchers compared groups based on creation date, with different projects in each period. The newer groups may have included more developers who already write tests.
Possible explanations the researchers identified include agents increasingly writing and running tests for their own changes, better models, and shifts in developer habits and attitudes. AI involvement in verification as well as implementation can mean more tests are generated without a separate request from a developer.
What do AI-written tests guarantee?
The paper measured the presence of test files. It did not evaluate test content or quality, or what kinds of bugs the tests could catch. A separate empirical study of 2025 commits found that AI agent commits in Python, JavaScript, and TypeScript projects changed test files more often than other commits. They were also more likely to add mocks, which simulate the behavior of dependencies.
For example, a mock can tell a program that calls an external inventory service that an item is in stock, letting developers test the flow without contacting the service. Checking what happens when the connection fails or the service returns a different response format requires tests for those cases. More tests can help, and their value depends on what they verify.
If AI generates both the implementation and the tests, both can share a mistaken assumption, such as treating an input that should produce an error as valid. Checking test conditions and expected results against the intended specification helps assess the generated code.
Delegating the writing of tests to AI can give people more time to decide what counts as correct behavior. Telling an AI what to build includes explaining what must never happen.
KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.
