Testability Indicators for Refactoring
摘要
Effective testing depends on the testability of the system under test, yet current practice for assessing testability remains ad-hoc and fragmented. We introduce a multi-level bundle of testability indicators that map directly to actionable code refactorings and DevOps tweaks. Architecture, code, runtime-observability and process patterns are operationalised through metrics such as CBO, log-event density and mutation score. Recurring indicator constellations surface “testability smells”, each linked to ranked, low-cost remedies. A prototype recommender couples RefactoringMiner with a random-forest classifier to automate smell detection and action ranking. We evaluate the approach on 12 open-source projects and one industrial microservice. Preliminary results show significant, sustained indicator improvements after targeted refactorings.