Title:
Testing with Fewer Resources: An Adaptive Approach to Performance-Aware Test Case Generation .
Authors: Giovanni Grano, Christoph Laaber, Annibale Panichella, and Sebastiano Panichella
Journal: Transactions on Software Engineering (TSE).
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
Testing with Fewer Resources: An Adaptive Approach to Performance-Aware Test Case Generation
1. Testing with Fewer Resources:
An Adaptive Approach to Performance-Aware Test Case
Generation
Giovanni Grano, Christoph Laaber, Annibale Panichella, Sebastiano Panichella
IEEE Transaction on Software Engineering JF @ ICSE 2020
2. testing activities high quality software
expensive evolutionary search
Automated Test Case Generation
3. Coverage vs non-coverage criteria
maximize code coverage criteria
other desirable qualities
(readability[1], code quality,
execution time, memory usage)
codecoverage
non cov. criteria
[1] Daka et.al - Modeling readability to improve unit tests (ESEC/FSE 2015)
8. Case Study
110 Java classes
27 different projects
3 research questions
Can we achieve the same
branch coverage?
Can we achieve the same
mutation score?
Can we reduce test runtime and
heap memory consumption?
DynaMOSA[2]
[2] Panichella et.al - Automated Test Case Generation as a Many-Objective Optimisation Problem with Dynamic Selection of the Targets
9. RQ1 & RQ2
branch coverage mutation score
72 vs 72
79 out of 110
32 vs 33
85 out of 110
10. RQ1 & RQ2
branch coverage mutation score
72 vs 72
79 out of 110
32 vs 33
85 out of 110
same achieved code coverage and mutation score
11. RQ3
subjects no difference in coverage
rigorous profiling
runtime and memory consumption
~70% lower runtime and memory consumption
12. RQ3
subjects no difference in coverage
rigorous profiling
runtime and memory consumption
lower resource demand with same coverage
~70% lower runtime and memory consumption