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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Testability Indicators for Refactoring

  • Tom Holvoet

摘要

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.