arXiv AI By Zihan Fang, Ron Asoulin-Handelman, Helen Wu, Yu Huang, Gina R. Bai

Can AI Guide Testing Without Generating Tests? A Comparative Study of AI-Assisted Unit Testing

Read the original on arXiv AI →

The study introduces TestCompass, a generative AI tutor that offers targeted feedback on students’ test suites without generating executable tests. In a classroom experiment with 18 students, TestCompass users spent more time creating and verifying tests themselves, yet achieved comparable test‑suite quality and similar requirement coverage with fewer test methods than those using a general AI assistant. The results indicate that feedback‑oriented AI can support effective testing outcomes while encouraging hands‑on practice.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv AI.

arXiv AI
Nov 14

Outcome Over Learning? Evidence from Student Use of AI Code Assistants for Unit Test Writing

The study examines how students use AI code assistants for writing unit tests, finding that most adopt a one‑shot strategy that asks the AI to produce a complete test from initial requirements. This approach efficiently yields a solution but diverts attention from learning how to write effective tests, as students rarely critique or refine the AI’s output. The authors suggest that training, accountability, and better task design could encourage a learning‑centric use of AI.

By Daniel Hinbest, Jeremy S. Bradbury, Michael A. Miljanovic
arXiv AI
4d ago

Generative AI in Software Testing: Practitioners' Perspectives on the Benefits, Challenges, Opportunities, and Risks

The study surveyed 64 software testing practitioners to assess their views on generative AI (GenAI) in testing. Results indicate that users generally see GenAI as helpful for reducing effort, generating tests, and debugging, while also expressing concerns about prompt dependence, trust, and incorrect outputs. Non‑users exhibit more uncertainty about technical challenges, and overall the findings suggest GenAI is an assistive tool that still requires human validation.

By Chamari Dasanayake, Rahul Mohanani, Vladimir Mandi\'c, Burak Turhan
arXiv AI
Aug 14

Assessment Design in the GenAI Era: The X1-X2-X3 Assessment Pattern for Testing Students' AI Literacy, Learning Outcomes, and Reflection

arXiv:2608. 12351v1 Announce Type: cross Abstract: Generative artificial intelligence (GenAI) has challenged the validity of unsupervised online assessment, especially in technical subjects where plausible answers can be produced with little effort.

By Riasat Islam (School of Electronic Engineering and Computer Science, Queen Mary University of London, London, United Kingdom), Thomas Roelleke (School of Electronic Engineering and Computer Science, Queen Mary University of London, London, United Kingdom)
arXiv Machine Learning
Oct 5

GTDD: Generative Test-Driven Development for AI Coding Agents with Adversarial Testing

The paper introduces Generative Test-Driven Development (GTDD), a method where a separate testing agent continuously generates new inputs after each coding agent’s implementation, guided by a human-specified behavioral contract and prior feedback. A trusted evaluator validates these inputs, provides reduced counterexamples, and stores them for regression testing, ensuring that development repeatedly confronts failures beyond the initial examples. Experimental results on a stateful key-value store show that policies regenerating tests during development achieve lower mean failure rates than a single-generation policy, while providing the tester with the candidate’s source code does not yield additional improvement.

By Masahiro Kato
arXiv AI
Jul 13

SCATE: Learning to Supervise Coding Agents for Cost-Effective Test Generation

arXiv:2607. 08983v1 Announce Type: cross Abstract: While autonomous coding agents have significantly advanced automated test generation, they remain fundamentally limited by lazy generation, a phenomenon where agents prematurely terminate tasks and systematically avoid complex programmatic logic, resulting in inadequate code coverage.

By Sijia Gu, Noor Nashid, Ali Mesbah