Conceptio › Archive › arXiv (OAI)
arXiv (OAI) open access

MR-Scout: Automated Synthesis of Metamorphic Relations from Existing Test Cases

Xu, Congying et al. · 2023 · arxiv_oai
arXiv (OAI) · Papers · 2023
Open Source ↗Direct PDF ↓
software-engineering
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

[2304.07548] MR-Scout: Automated Synthesis of Metamorphic Relations from Existing Test Cases Skip to main content Search Submit Donate Log in Search arXiv Press Enter to search · Advanced search Computer Science > Software Engineering arXiv:2304.07548 (cs) [Submitted on 15 Apr 2023 ( v1 ), last revised 11 Apr 2026 (this version, v5)] Title: MR-Scout: Automated Synthesis of Metamorphic Relations from Existing Test Cases Authors: Congying Xu , Valerio Terragni , Hengcheng Zhu , Jiarong Wu , Shing-Chi Cheung View a PDF of the paper titled MR-Scout: Automated Synthesis of Metamorphic Relations from Existing Test Cases, by Congying Xu and 4 other authors View PDF HTML (experimental) Abstract: Metamorphic Testing (MT) alleviates the oracle problem by defining oracles based on metamorphic relations (MRs), that govern multiple related inputs and their outputs. However, designing MRs is challenging, as it requires domain-specific knowledge. This hinders the widespread adoption of MT. We observe that developer-written test cases can embed domain knowledge that encodes MRs. Such encoded MRs could be synthesized for testing not only their original programs but also other programs that share similar functionalities. In this paper, we propose MR-Scout to automatically synthesize MRs from test cases in open-source software (OSS) projects. MR-Scout first discovers MR-encoded test cases (MTCs), and then synthesizes the encoded MRs into parameterized methods (called codified MRs), and filters out MRs that demonstrate poor quality for new test case generation. MR-Scout discovered over 11,000 MTCs from 701 OSS projects. Experimental results show that over 97% of codified MRs are of high quality for automated test case generation, demonstrating the practical applicability of MR-Scout. Furthermore, codified-MRs-based tests effectively enhance the test adequacy of programs with developer-written tests, leading to 13.52% and 9.42% increases in line coverage and mutation score, respectively. Our qualitative study shows that 55.76% to 76.92% of codified MRs are easily comprehensible for developers. Comments: accepted by TOSEM'24, and available at this https URL Subjects: Software Engineering (cs.SE) Cite as: arXiv:2304.07548 [cs.SE] (or arXiv:2304.07548v5 [cs.SE] for this version) https://doi.org/10.48550/arXiv.2304.07548 Focus to learn more arXiv-issued DOI via DataCite Journal reference: ACM Transactions on Software Engineering and Methodology, Volume 33, Issue 6, Article 150 (July 2024) Related DOI : https://doi.org/10.1145/3656340 Focus to learn more DOI(s) linking to related resources Submission history From: Congying Xu [ view email ] [v1] Sat, 15 Apr 2023 12:53:32 UTC (947 KB) [v2] Tue, 2 Apr 2024 10:20:03 UTC (2,750 KB) [v3] Mon, 8 Apr 2024 05:12:15 UTC (1 KB) (withdrawn) [v4] Tue, 25 Jun 2024 02:42:13 UTC (2,750 KB) [v5] Sat, 11 Apr 2026 09:52:25 UTC (2,750 KB) Full-text links: Access Paper: View a PDF of the paper titled MR-Scout: Automated Synthesis of Metamorphic Relations from Existing Test Cases, by Congying Xu and 4 other authors View PDF HTML (experimental) TeX Source view license Current browse context: cs.SE < prev | next > new | recent | 2023-04 Change to browse by: cs References & Citations NASA ADS Google Scholar Semantic Scholar export BibTeX citation Loading... BibTeX formatted citation × loading... Data provided by: Bookmark Bibliographic Tools Bibliographic and Citation Tools Bibliographic Explorer Toggle Bibliographic Explorer ( What is the Explorer? ) Connected Papers Toggle Connected Papers ( What is Connected Papers? ) Litmaps Toggle Litmaps ( What is Litmaps? ) scite.ai Toggle scite Smart Citations ( What are Smart Citations? ) Code, Data, Media Code, Data and Media Associated with this Article alphaXiv Toggle alphaXiv ( What is alphaXiv? ) Links to Code Toggle CatalyzeX Code Finder for Papers ( What is CatalyzeX? ) DagsHub Toggle DagsHub ( What is DagsHub? ) GotitPub Toggle Gotit.pub ( What is GotitPub? ) Huggingface Toggle Hugging Face ( What is Huggingface? ) ScienceCast Toggle ScienceCast ( What is ScienceCast? ) Demos Demos Replicate Toggle Replicate ( What is Replicate? ) Spaces Toggle Hugging Face Spaces ( What is Spaces? ) Spaces Toggle TXYZ.AI ( What is TXYZ.AI? ) Related Papers Recommenders and Search Tools Link to Influence Flower Influence Flower ( What are Influence Flowers? ) Core recommender toggle CORE Recommender ( What is CORE? ) Author Venue Institution Topic About arXivLabs arXivLabs: experimental projects with community collaborators arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website. Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them. Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs . Which authors of this paper are endorsers? | Disable MathJax ( What is MathJax? ) We gratefully acknowledge support from our major funders , member institutions , , and all contributors. About · Help · Contact · Subscribe · Copyright · Privacy · Accessibility · Operational Status (opens in new tab) Major funding support from

Related documents

Record · ID 139049 · SHA-256 9ae1b7d1d20a513f
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive