Test2Vec: An Execution Trace Embedding for Test Case Prioritization
Not on the map. Why?
Abstract (arXiv)
Most automated software testing tasks can benefit from the abstract representation of test cases. Traditionally, this is done by encoding test cases based on their code coverage. Specification-level criteria can replace code coverage to better represent test cases' behavior, but they are often not cost-effective. In this paper, we hypothesize that execution traces of the test cases can be a good alternative to abstract their behavior for automated testing tasks. We propose a novel embedding approach, Test2Vec, that maps test execution traces to a latent space. We evaluate this representation in the test case prioritization (TP) task. Our default TP method is based on the similarity of the embedded vectors to historical failing test vectors. We also study an alternative based on the diversity of test vectors. Finally, we propose a method to decide which TP to choose, for a given test suite. The experiment is based on several real and seeded faults with over a million execution traces. Results show that our proposed TP improves best alternatives by 41.80% in terms of the median normalized rank of the first failing test case (FFR). It outperforms traditional code coverage-based approaches by 25.05% and 59.25% in terms of median APFD and median normalized FFR.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 29 of its 75 references that are in the map. First posted on arXiv 28 Jun 2022.
Builds on
29 of 75 references.
References · 29
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2019Text Summarization with Pretrained Encoderscited by 553
- 2019ClinicalBERT: Modeling Clinical Notes and Predicting Hospital Readmissioncited by 487
- 2018code2vec: Learning Distributed Representations of Codecited by 249
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
- 2019Blockwise Self-Attention for Long Document Understandingcited by 158
17 more
- 2019Do NLP Models Know Numbers? Probing Numeracy in Embeddingscited by 157
- 2019Multi-passage BERT: A Globally Normalized BERT Model for Open-domain Question Answeringcited by 96
- 2021Applying CodeBERT for Automated Program Repair of Java Simple Bugscited by 44
- 2016Deep API Learningcited by 41
- 2018Automated software vulnerability detection with machine learningcited by 34
- 2017Learn&Fuzz: Machine Learning for Input Fuzzingcited by 23
- 2017Dynamic Neural Program Embedding for Program Repaircited by 23
- 2019A Literature Study of Embeddings on Source Codecited by 18
- 2022Muffin: Testing Deep Learning Libraries via Neural Architecture Fuzzingcited by 15
- 2021Test Case Selection and Prioritization Using Machine Learning: A Systematic Literature Reviewcited by 12
- 2015Test Set Diameter: Quantifying the Diversity of Sets of Test Casescited by 10
- 2018Code Vectors: Understanding Programs Through Embedded Abstracted Symbolic Tracescited by 7
- 2020Learning to Encode and Classify Test Executionscited by 6
- 2020Fine-Tuning BERT for Sentiment Analysis of Vietnamese Reviewscited by 6
- 2019Learning Blended, Precise Semantic Program Embeddingscited by 5
- 2018The Remarkable Role of Similarity in Redundancy-based Program Repaircited by 3
- 2020Regression Test Case Prioritization by Code Combinations Coveragecited by 3
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 1.
3 papers.
- 2024Artificial intelligence for context-aware visual change detection in software test automationcited by 1
- 2025Targeted Test Selection Approach in Continuous Integrationcited by 1
- 2026Trajectory-Aware Benchmark Subset Selection for Cost-Efficient Software Engineering Agent Regression Testingcited by 0
- 2026Trajectory-Aware Benchmark Subset Selection for Cost-Efficient Software Engineering Agent Regression Testing21 Sep 2026
- 2025Targeted Test Selection Approach in Continuous Integration12 Sep 2025
- 2024Artificial intelligence for context-aware visual change detection in software test automation1 May 2024