Recent advances in generative AI have enabled assistants to generate increasingly sophisticated executable unit tests. However, novices may accept these outputs without independently identifying what to test, evaluating test-suite completeness, or verifying correctness, potentially limiting opportunities to develop essential testing skills. Although prior work has explored AI-assisted test generation and feedback-oriented programming tutors, little is known about whether AI can support novices' testing practices without generating tests for them. To investigate this, we introduce TestCompass, a generative AI tutor that provides targeted feedback on weaknesses in students' test suites without generating executable tests. In a classroom study with 18 students, we compared TestCompass with a general AI assistant across two Java unit-testing tasks, examining students' testing behaviors, test-suite quality, and subjective experiences. We found that participants using the general-purpose AI assistant produced more tests, whereas TestCompass participants spent more time developing and verifying tests themselves. However, most test-suite quality measures were comparable between conditions, and TestCompass participants achieved similar requirement coverage with significantly fewer test methods (p=0.012) in one task. Neither group reported short-term improvements in perceived testing knowledge or confidence. These findings suggest that feedback-oriented AI can support meaningful testing outcomes while preserving opportunities for hands-on testing practice, offering a complementary approach to AI-assisted testing education.
Figures & tables
Fig. 1: TestCompass Design
Fig. 2: Study Design
Education
Gender
Java (yrs)
Unit test
Groups
UG
Grad
M
W
NB
ND
<1
1–3
<1 yr
TestCompass (TC)
7
1
6
1
0
1
4
4
8
General AI (AI)
10
0
5
4
1
0
4
6
10
TABLE I: Participant demographics and self-reported experience by condition.
Activity
Average Time and Percentage
TC
AI
Min.
%
Min.
%
Task 1: MarsRover
Tool consultation ∗
2.3
9.2
13.5
41.2
Web search
0.4
1.3
0.1
0.3
References
0.3
0.7
0.3
1.0
TABLE II: Time allocation across testing activities by task and tool condition.
Measure
Groups
Cliff’s δ
TC
AI
Task 1: MarsRover
Requirement coverage (%)
85.4
90.8
0.00
Full requirement coverage, n (%)
4 (50%)
4 (40%)
0.10
Line coverage (%)
88.1
98.2
-0.21
Branch coverage (%)
72.3
87.7
-0.65
TABLE III: Test-suite quality by task and condition.
Groups
Measure
TC
AI
Tool helpfulness
3.3 ∗
4.7 ∗
Willingness to recommend
3.4
3.6
Testing knowledge (pre)
3.0
3.0
Testing knowledge (post)
3.0
3.0
Testing confidence (pre)
2.8
2.9
TABLE IV: Participant survey ratings by tool condition.