[Paper Review] Ticket coverage: putting test coverage into context
This paper introduces ticket coverage, a metric that measures the ratio of changed methods within a software ticket that are covered by automated or manual tests, providing context-aware test transparency. In an industrial study of 650k lines of Java code, ticket coverage successfully revealed significant test gaps in ticket-level testing practices.
There is no metric that determines how well the implementation of a ticket has been tested. As a consequence, code changed within the context of a ticket might unintentionally remain untested and get into production. This is a major problem, because changed code is more fault-prone than unchanged code. In this paper, we introduce the metric ticket coverage which puts test coverage into the context of tickets. For each ticket, it determines the ratio of changed methods covered by automated or manual tests. We conducted an empirical study on an industrial system consisting of 650k lines of Java code and show that ticket coverage brings transparency into the test state of tickets and reveals relevant test gaps.
Motivation & Objective
- To address the lack of metrics that assess test coverage within the context of individual software development tickets.
- To identify untested or insufficiently tested code changes that are more prone to faults.
- To improve test transparency by linking test coverage directly to ticket-level changes in software development workflows.
- To empirically evaluate the effectiveness of ticket coverage in detecting test gaps in real industrial systems.
Proposed method
- The metric computes the ratio of changed methods in a ticket that are covered by automated or manual tests.
- It analyzes source code changes per ticket using version control and test coverage data from existing test suites.
- It distinguishes between automated and manual test coverage to reflect different testing practices.
- It maps changes in a ticket to methods and checks whether each changed method is covered by any test.
- It uses static analysis and test instrumentation to extract method-level coverage information.
- It evaluates the metric on a real industrial system with 650k lines of Java code.
Experimental results
Research questions
- RQ1To what extent are code changes within tickets actually tested, and how does this vary across tickets?
- RQ2How effective is ticket coverage in identifying test gaps in real-world industrial software development?
- RQ3What is the distribution of test coverage across tickets, and are there recurring patterns of under-testing?
- RQ4How does ticket coverage compare to traditional code coverage metrics in revealing meaningful testing deficiencies?
Key findings
- Ticket coverage successfully revealed significant test gaps, showing that many changed methods within tickets remain untested.
- A substantial portion of code changes in tickets were not covered by any tests, increasing the risk of introducing faults.
- The metric provided actionable insights into testing practices by highlighting tickets with low or no test coverage.
- The study demonstrated that traditional code coverage metrics alone fail to capture test adequacy at the ticket level.
- Ticket coverage exposed that test coverage is not uniformly distributed across tickets, with some tickets having no test coverage despite code changes.
- The metric proved effective in bringing transparency to the testing state of individual tickets in an industrial setting.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.