The DOI matches its DataCite record.
Using Large Language Models for Student-Code Guided Test Case Generation in Computer Science Education
Open accessAbstract
In computer science education, test cases are an integral part of programming assignments since they can be used as assessment items to test students' programming knowledge and provide personalized feedback on student-written code. The goal of our work is to propose a fully automated approach for test case generation that can accurately measure student knowledge, which is important for two reasons. First, manually constructing test cases requires expert knowledge and is a labor-intensive process. Second, developing test cases for students, especially those who are novice programmers, is significantly different from those oriented toward professional-level software developers. Therefore, we need an automated process for test case generation to assess student knowledge and provide feedback. In this work, we propose a large language model-based approach to automatically generate test cases and show that they are good measures of student knowledge, using a publicly available dataset that contains student-written Java code. We also discuss future research directions centered on using test cases to help students.
Overview
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cited by
Sorted by citations
Zhu, Y., Zhu, C., Wu, T., Wang, S., Zhou, Y., Chen, J., Wu, F., & Li, Y. (2025) · Education and Information Technologies · doi:10.1007/s10639-024-12898-3 · Cited by 33
Reflexões sobre o Uso de LLMs no Ensino de Programação
Rosa, Y. S., Garcia, P., Constantino, K., & Figueiredo, E. (2025) · Anais do V Simpósio Brasileiro de Educação em Computação (EDUCOMP 2025) · doi:10.5753/educomp.2025.5366 · Cited by 4
Metadata
- Authors
- Kumar, N. A., & Lan, A.
- Affiliations
- University of Massachusetts Amherst (US)
- ORCID
- Lan, Andrew
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2024
- ISSN
- 2331-8422 (ISSN-L)
- arXiv
- 2402.07081
- OpenAlex
- W4391800764
- Cited by
- 12
- References
- 0
- Citations by year
- 2026: 5 · 2025: 5 · 2024: 2
- Type
- posted content
- Language
- en
- Open access
- green
- arxiv.org
- Licence
- Locations
- arXiv (Cornell University) (submittedVersion, cc-by)
- arXiv (Cornell University) (cc-by)
- Funders
- National Science Foundation (2215193)
- Topics
- Physical Sciences › Computer Science › Computer Science Applications › Teaching and Learning Programming
- Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Keywords
- test case generation, large language models, student code, programming exercises, automated assessment, personalized feedback, novice programmers, Java code, programming education
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Using Large Language Models for Student-Code Guided Test Case Generation in Computer Science Education. https://app.cochat.ai/papers/10.48550/arxiv.2402.07081
- The paper
- Kumar, N. A., & Lan, A. (2024). Using Large Language Models for Student-Code Guided Test Case Generation in Computer Science Education. arXiv. https://doi.org/10.48550/arxiv.2402.07081