Injection testing backed refactoring

by   Thomas Mejstrik, et al.

Injection-based testing while refactoring is a pattern that minimizes the need for manual editing when altering the behaviour of a code base. Neither does it rely on a compilation or a linking process nor does it make assumptions on the structure of the code. Thus, it can be particularly useful for refactoring code that has been written in scripting languages, and specifically targets the research and engineering context. We describe the pattern and propose a set of functions for its application. The applicability of code injection for refactoring is highlighted via specific examples for deriving unit and integration tests. Finally, we comment on the customizing of the pattern and give practical advice for its implementation.


page 3

page 4

page 5

page 6


A Code injection Method for Rapid Docker Image Building

Docker images are built by layers, yet the current implementation has ma...

Open-source Defect Injection Benchmark Testbed for the Evaluation of Testing

A natural method to evaluate the effectiveness of a testing technique is...

Evolutionary Multi-Task Injection Testing on Web Application Firewalls

Web application firewall (WAF) plays an integral role nowadays to protec...

Reduction Theorem for Secrecy over Linear Network Code for Active Attacks

We discuss the effect of sequential error injection on information leaka...

Analysis of injection operators in multigrid solvers for hybridized discontinuous Galerkin methods

Uniform convergence of the geometric multigrid V-cycle is proven for HDG...

NoSPaM Manual - A Tool for Node-Specific Triad Pattern Mining

The detection of triadic subgraph motifs is a common methodology in comp...