# The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study

기계 학습의 자동화된 테스트 생성 통합: 체계적 매핑 연구

Afonso Fontes, Gregory Gay · arXiv · 2022년 6월 21일

- **연구 문제** 자동 테스트 생성은 비용이 크고 기존 프레임워크가 시스템에 적응하기 어려워, ML을 통합한 연구의 현황을 파악할 필요가 있습니다.
- **연구 방법** 124편의 발표 논문을 체계적 매핑 연구로 선정하고, 테스트 실무·ML 유형·기법·목표·평가 방식 기준으로 분류합니다.
- **주요 결과** 입력 생성이 67%, 오라클 생성이 33%를 차지하며, 지도 학습이 61%, 강화 학습이 34%로 가장 많이 사용되었습니다.

## 연구 문제와 배경

자동 테스트 생성은 입력을 만들고 그 결과가 맞는지 판단하는 오라클을 만드는 일로, 많은 비용이 드는 작업입니다. 기존 생성 프레임워크는 여러 시스템에 같은 일반적 휴리스틱을 정적으로 적용하는 경우가 많아 특정 시스템에 적응하기 어렵습니다. 이 논문은 머신러닝을 자동 테스트 생성에 통합한 최근 연구가 어떤 테스트 실무, 목표, ML 유형과 기법, 평가 방식, 한계를 갖는지 체계적 매핑 연구로 정리합니다. 여기서 다루는 범위는 ML을 테스트 생성 과정에 사용한 연구이며, 시스템 자체를 대상으로 하는 ML 기반 시스템의 테스트는 범위에서 제외됩니다.

![Table 1: List of research questions, along with motivation for answering the question](https://refivu.com/papers/2888dbf4-a7c2-47ee-a794-60fb29841356/figures/figure-61ee6cb267456bbc88020107a7f4394c.png?thumb=512)

**Table 1** List of research questions, along with motivation for answering the question.

[원문](https://arxiv.org/abs/2206.10210v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Afonso Fontes, Gregory Gay · The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Table 12: ML goals and the number of publications pursuing each goal](https://refivu.com/papers/2888dbf4-a7c2-47ee-a794-60fb29841356/figures/figure-0979262f5068099f91ee65dd75a27fb0.png?thumb=512)

**Table 12** ML goals and the number of publications pursuing each goal.

[원문](https://arxiv.org/abs/2206.10210v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Afonso Fontes, Gregory Gay · The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study · 원문 그림 인용 · 원본 PDF 23쪽에서 그림 영역을 추출했습니다.

![Table 14: Evaluation metrics adopted (similar metrics are grouped), divided by ML approach, and ordered by number of publications using each metric. Metrics in…](https://refivu.com/papers/2888dbf4-a7c2-47ee-a794-60fb29841356/figures/figure-5d399cb46320e19f281524fedc62473b.png?thumb=512)

**Table 14** Evaluation metrics adopted (similar metrics are grouped), divided by ML approach, and ordered by number of publications using each metric. Metrics in bold are related to ML.

[원문](https://arxiv.org/abs/2206.10210v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Afonso Fontes, Gregory Gay · The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.

## 표본 선정과 분류 절차

연구진은 IEEE Xplore, ACM Digital Library, Science Direct, Scopus에서 테스트 생성 용어와 머신러닝 용어를 결합한 검색 문자열로 후보를 찾았고, 초기 3227편에서 제목과 초록 키워드 필터, 중복 제거, 2차 연구 제외, 수동 검토를 거쳐 119편을 얻었습니다. 이후 스노볼링으로 5편을 더해 최종 124편을 확정했습니다. 데이터 추출은 P1에서 P13까지의 속성을 기준으로 수행되었고, 제1저자가 대부분 추출하고 제2저자가 10편을 독립 추출하여 거의 완전히 일치했다고 보고합니다. 분류는 입력과 오라클 생성, 입력 세분화, ML 유형과 기법, 목표, 평가 지표를 기준으로 합니다.

![Figure 3: Steps taken to determine the final list of publications to analyze](https://refivu.com/papers/2888dbf4-a7c2-47ee-a794-60fb29841356/figures/figure-0cc77ea7adc49e13cadf863e063860b2.png?thumb=512)

**Figure 3** Steps taken to determine the final list of publications to analyze.

[원문](https://arxiv.org/abs/2206.10210v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Afonso Fontes, Gregory Gay · The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Table 2: List of properties used to answer the research questions. For each property, we include a name, the research questions the property is associated with…](https://refivu.com/papers/2888dbf4-a7c2-47ee-a794-60fb29841356/figures/figure-3b645635d005717577d3c56ad2705760.png?thumb=512)

**Table 2** List of properties used to answer the research questions. For each property, we include a name, the research questions the property is associated with, and a short description.

[원문](https://arxiv.org/abs/2206.10210v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Afonso Fontes, Gregory Gay · The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 테스트 실무와 ML 유형의 분포

입력 생성은 전체 표본의 67%에 해당하며 오라클 생성은 33%에 해당합니다. 입력 생성 연구 중에서는 시스템 테스트가 가장 많고 GUI, 단위 테스트가 뒤를 잇습니다. 전체적으로 지도 학습이 61%, 강화 학습이 34%를 차지하고, 비지도 학습과 준지도 학습은 각각 2%와 3%입니다. 지도 학습은 시스템 테스트, 조합 상호작용 테스트와 모든 형태의 오라클 생성에서 가장 흔하며, 강화 학습은 GUI, 단위, 성능 테스트에서 가장 흔한 기법으로 보고됩니다.

![Figure 2: Types of ML and their concepts, characteristics, and applications](https://refivu.com/papers/2888dbf4-a7c2-47ee-a794-60fb29841356/figures/figure-927799a4f228422ea3bb6665611a6c9e.png?thumb=512)

**Figure 2** Types of ML and their concepts, characteristics, and applications.

[원문](https://arxiv.org/abs/2206.10210v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Afonso Fontes, Gregory Gay · The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

![Table 4: Publications under System Test Generation (White Box) with publication date, ML type, ML technique, training data, objective of the ML, evaluation met…](https://refivu.com/papers/2888dbf4-a7c2-47ee-a794-60fb29841356/figures/figure-02b274e515ca1058f8d93d5b4d10192d.png?thumb=512)

**Table 4** Publications under System Test Generation (White Box) with publication date, ML type, ML technique, training data, objective of the ML, evaluation metrics, and applications used to evaluate. NN = Neural Network.

[원문](https://arxiv.org/abs/2206.10210v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Afonso Fontes, Gregory Gay · The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

![Table 5: Publications under GUI Test Generation with publication date, ML type, ML technique, training data, objective of the ML, evaluation metrics, and appli…](https://refivu.com/papers/2888dbf4-a7c2-47ee-a794-60fb29841356/figures/figure-9ad690e44a9762152980fe2b403cd011.png?thumb=512)

**Table 5** Publications under GUI Test Generation with publication date, ML type, ML technique, training data, objective of the ML, evaluation metrics, and applications used to evaluate. NN = Neural Network.

[원문](https://arxiv.org/abs/2206.10210v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Afonso Fontes, Gregory Gay · The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.

![Table 7: Publications under Performance Test Generation with publication date, ML type, ML technique, training data, objective of the ML, evaluation metrics, a…](https://refivu.com/papers/2888dbf4-a7c2-47ee-a794-60fb29841356/figures/figure-be411046c6c6cbfcfdadc3cd5dd81cc6.png?thumb=512)

**Table 7** Publications under Performance Test Generation with publication date, ML type, ML technique, training data, objective of the ML, evaluation metrics, and applications used to evaluate. NN = Neural Network.

[원문](https://arxiv.org/abs/2206.10210v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Afonso Fontes, Gregory Gay · The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.

![Table 8: Publications under Combinatorial Interaction Testing with publication date, ML type, ML technique, training data, objective of the ML, evaluation metr…](https://refivu.com/papers/2888dbf4-a7c2-47ee-a794-60fb29841356/figures/figure-df8e1da9fc0786a0420a4d6ba8a663f2.png?thumb=512)

**Table 8** Publications under Combinatorial Interaction Testing with publication date, ML type, ML technique, training data, objective of the ML, evaluation metrics, and applications used to evaluate. NN = Neural Network.

[원문](https://arxiv.org/abs/2206.10210v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Afonso Fontes, Gregory Gay · The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.

![Table 11: Publications under Metamorphic (And Other Properties) Test Oracle Generationwith publication date, ML type, ML technique, training data, objective of…](https://refivu.com/papers/2888dbf4-a7c2-47ee-a794-60fb29841356/figures/figure-dd95ea327d0dd99ef761490e4ff20556.png?thumb=512)

**Table 11** Publications under Metamorphic (And Other Properties) Test Oracle Generationwith publication date, ML type, ML technique, training data, objective of the ML, evaluation metrics, and applications used to evaluate. NN = Neural Network.

[원문](https://arxiv.org/abs/2206.10210v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Afonso Fontes, Gregory Gay · The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.

![Table 13: ML techniques adopted—divided by ML type and family of ML techniques—ordered by number of publications where the technique is adopted. NN = Neural Ne…](https://refivu.com/papers/2888dbf4-a7c2-47ee-a794-60fb29841356/figures/figure-95952b2e24e4cf2e2a1c2e58be78b79f.png?thumb=512)

**Table 13** ML techniques adopted—divided by ML type and family of ML techniques—ordered by number of publications where the technique is adopted. NN = Neural Network.

[원문](https://arxiv.org/abs/2206.10210v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Afonso Fontes, Gregory Gay · The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study · 원문 그림 인용 · 원본 PDF 25쪽에서 그림 영역을 추출했습니다.

## 남은 과제와 한계

저자들은 지도 학습의 주요 한계로 훈련 데이터의 양, 품질, 내용과 사람이 레이블을 붙이는 노력을 들며, 오라클은 특히 이 문제를 크게 겪는다고 해석합니다. 또한 많은 연구가 단순한 예제에서 평가되어 실제 생산 코드에 적용 가능한지 아직 분명하지 않다고 보고합니다. 표본에서 공개 코드나 재현 패키지를 제공한 연구는 33%에 그쳤습니다. 이 결과는 본 매핑 연구의 표본과 분류에 기반한 관찰이며, 개별 기법의 성능을 독립적으로 재검증한 결과가 아닙니다.

## 논문 정보

- **저자**: Afonso Fontes, Gregory Gay
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2022년 6월 21일
- **등록일**: 2026년 11월 6일
- **수정일**: 2023년 4월 16일
- **버전**: v5
- **arXiv**: 2206.10210
- **분류**: cs.SE · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2206.10210v5) · [원문 PDF ↗](https://arxiv.org/pdf/2206.10210v5)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Context: Machine learning (ML) may enable effective automated test generation. Objective: We characterize emerging research, examining testing practices, researcher goals, ML techniques applied, evaluation, and challenges. Methods: We perform a systematic mapping on a sample of 124 publications. Results: ML generates input for system, GUI, unit, performance, and combinatorial testing or improves the performance of existing generation methods. ML is also used to generate test verdicts, property-based, and expected output oracles. Supervised learning - often based on neural networks - and reinforcement learning - often based on Q-learning - are common, and some publications also employ unsupervised or semi-supervised learning. (Semi-/Un-)Supervised approaches are evaluated using both traditional testing metrics and ML-related metrics (e.g., accuracy), while reinforcement learning is often evaluated using testing metrics tied to the reward function. Conclusion: Work-to-date shows great promise, but there are open challenges regarding training data, retraining, scalability, evaluation complexity, ML algorithms employed - and how they are applied - benchmarks, and replicability. Our findings can serve as a roadmap and inspiration for researchers in this field.

## 원문 인용

Afonso Fontes, Gregory Gay (2022). The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study. arXiv:2206.10210v5. https://arxiv.org/abs/2206.10210v5

**BibTeX**

```
@misc{fontes2022integration,
  title = {{The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study}},
  author = {Afonso Fontes and Gregory Gay},
  year = {2022},
  eprint = {2206.10210},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.10210v5}
}
```

## 이 논문의 용어

- [트랜스포머](https://refivu.com/terms/515e8433c447-transformer)
- [강화학습](https://refivu.com/terms/9d55ef3a06b9-reinforcement-learning)
- [Q-learning](https://refivu.com/terms/e20b416cb2f7-q-learning)
- [Long Short-Term Memory](https://refivu.com/terms/1eac61fff4b1-long-short-term-memory)
- [reward function](https://refivu.com/terms/54f4a5f914c0-reward-function)
- [Genetic Algorithm](https://refivu.com/terms/616f8277da33-genetic-algorithm)
- [label propagation](https://refivu.com/terms/4b7c3e844260-label-propagation)
- [Supervised learning](https://refivu.com/terms/1c6d1ef2b134-supervised-learning)
- [Test Oracle](https://refivu.com/terms/63bf6b5eab1e-test-oracle)

## 다른 논문 해설

- [Reinforcement Learning from Simulation to Real World Autonomous Driving using Digital Twin](https://refivu.com/papers/70bd419a-72db-410c-bb44-58f99755e9c7-reinforcement-learning-from-simulation-to-real-world.md)
- [Quantum Deep Hedging](https://refivu.com/papers/dca88816-93e2-4fad-a58f-a75468388c53-quantum-deep-hedging.md)
- [Simulating multi-exit evacuation using deep reinforcement learning](https://refivu.com/papers/b97fe792-55ee-4b74-a513-db63d11a677b-simulating-multi-exit-evacuation-using-deep-reinforcement.md)
- [Resilience-based post disaster recovery optimization for infrastructure system via Deep Reinforcement Learning](https://refivu.com/papers/6bb3f9c7-0294-41c9-bfe9-67ca829cfa50-resilience-based-post-disaster-recovery-optimization-for.md)
- [Lyapunov-Regularized Reinforcement Learning for Power System Transient Stability](https://refivu.com/papers/020c5655-2975-4119-9970-88ddb8fec8ad-lyapunov-regularized-reinforcement-learning-for-power-system.md)
- [Reinforcement Learning for Control of Valves](https://refivu.com/papers/5c48217a-319a-4501-bbc1-63b5313c7ab4-reinforcement-learning-for-control-of-valves.md)
- [Sentiment Analysis in Finance: From Transformers Back to eXplainable Lexicons (XLex)](https://refivu.com/papers/0773363d-36cf-4538-afdb-ea972dcfe464-sentiment-analysis-in-finance-from-transformers-back-to.md)
- [Unveiling the Potential of iMarkers: Invisible Fiducial Markers for Advanced Robotics](https://refivu.com/papers/b9d7d707-2f89-452d-a72a-9a9b942bd551-unveiling-the-potential-of-imarkers-invisible-fiducial.md)
- [Multi-Objective Hyperparameter Optimization in Machine Learning -- An Overview](https://refivu.com/papers/571a033e-c557-410d-b90d-5a603ff612c7-multi-objective-hyperparameter-optimization-in-machine.md)
- [Real-World Light Field Image Super-Resolution via Degradation Modulation](https://refivu.com/papers/a26330d8-0701-482e-97ff-34776c50b1a9-real-world-light-field-image-super-resolution-via.md)
- [Explainable Autonomous Cyber Defense using Adversarial Multi-Agent Reinforcement Learning](https://refivu.com/papers/d8f3f5bb-3cbf-4af9-b2e8-1db2ea62a71d-explainable-autonomous-cyber-defense-using-adversarial-multi.md)
- [Improving Model-based Genetic Programming for Symbolic Regression of Small Expressions](https://refivu.com/papers/0bf9a336-42f7-41e4-95a7-afee0dd21bb5-improving-model-based-genetic-programming-for-symbolic.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/2888dbf4-a7c2-47ee-a794-60fb29841356-the-integration-of-machine-learning-into-automated-test)
