MSc Thesis Presentation - Partha Protim Paul

Date
–

Name:  Partha Protim Paul
Date:   26-Nov-2026
Time:   3:00 PM
Location:   ICICS 304
Supervisor:  Reid Holmes

Title:   Empirically Measuring Test Suite Behavioural Gaps

Abstract:
Traditional test adequacy metrics measure a system’s implementation, not whether it adheres to its expected behaviour. While developers rely heavily on code coverage and mutation testing to assess test suite quality, these metrics are fundamentally implementation-centric and cannot detect gaps between what the code is expected to do and what it actually does. Unfortunately, there has been no way to reliably detect these discrepancies; in this thesis we introduce an automated proof-of-concept approach to investigate these gaps. The approach extracts expected method-level behaviours from natural language documentation and source code, maps them to existing test cases, and identifies gaps between expected and validated behaviours. We evaluate the approach across ten well-tested open-source Java projects comprising 8,922 methods, extracting 20,729 behaviours with 93.1% ± 2.7% precision. Our empirical analysis conservatively estimates that 17.5% of detected expected behaviours remain entirely untested, which we term the test suite’s behavioural gap. To determine if these gaps are merely an artifact of human-driven testing, we evaluate state-of-the-art automated test generators (ASTER / EVOSUITE), finding that they similarly fail to validate at least 27.1% / 20.6% of detected expected behaviours. We further demonstrate that behavioural gaps are not predicted by traditional structural metrics: 38.2% of methods with perfect line coverage and 29.6% of methods with a perfect mutation kill score still contain at least one untested behaviour. These results suggest behavioural coverage is a complementary dimension of test suite adequacy not captured by traditional structural metrics.