Outcome Over Learning? Evidence from Student Use of AI Code Assistants for Unit Test Writing
Daniel Hinbest, Jeremy S. Bradbury, Michael A. Miljanovic
Key points
From the paper's conclusion- In an effort to shift student focus from outcome to learning we also discuss how training, accountability and improved learning task design can better support a more learning-centric responsible use of AI.
Abstract
Artificial intelligence (AI) code assistants are rapidly being adopted in programming education, yet little is known about how students naturally use these tools when given unrestricted access. In a user study investigating AI-assisted unit test writing, we observed that a majority of students adopted a one-shot interaction strategy, asking the AI to generate a complete unit test directly from the initial requirements. While this approach is capable of efficiently producing a solution, it shifts students' focus from learning how to write effective unit tests to simply completing the task. Moreover, because students rarely engaged in critically evaluating, refining, or iterating on AI-generated output, they may be missing opportunities to develop the critical thinking skills that are essential for effective and responsible use of AI. In an effort to shift student focus from outcome to learning we also discuss how training, accountability and improved learning task design can better support a more learning-centric responsible use of AI.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Can AI Guide Testing Without Generating Tests? A Comparative Study of AI-Assisted Unit TestingarXiv · 2026
- Less stress, better scores, same learning: The dissociation of performance and learning in AI-supported programming educationComputers and Education Artificial Intelligence · 2025
- Tool, tutor, or crutch?: A grounded theory of cognitive scaffolding and offloading in AI-assisted programming educationInternational Journal of STEM Education · 2026
- Is This Code Mine? Student Ownership When AI Agents Write the Spec and the CodearXiv · 2026
- How AI Impacts Skill FormationOpen MIND · 2026
- Three Years with Classroom AI in Introductory Programming: Shifts in Student Awareness, Interaction, and PerformanceACM Transactions on Computing Education · 2026