MR-Adopt: Automatic Deduction of Input Transformation Function for Metamorphic Testing
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.
[2408.15815] MR-Adopt: Automatic Deduction of Input Transformation Function for Metamorphic Testing Skip to main content Search Submit Donate Log in Search arXiv Press Enter to search · Advanced search Computer Science > Software Engineering arXiv:2408.15815 (cs) [Submitted on 28 Aug 2024 ( v1 ), last revised 11 Apr 2026 (this version, v2)] Title: MR-Adopt: Automatic Deduction of Input Transformation Function for Metamorphic Testing Authors: Congying Xu , Songqiang Chen , Jiarong Wu , Shing-Chi Cheung , Valerio Terragni , Hengcheng Zhu , Jialun Cao View a PDF of the paper titled MR-Adopt: Automatic Deduction of Input Transformation Function for Metamorphic Testing, by Congying Xu and 6 other authors View PDF HTML (experimental) Abstract: While a recent study reveals that many developer-written test cases can encode a reusable Metamorphic Relation (MR), over 70% of them directly hard-code the source input and follow-up input in the encoded relation. Such encoded MRs, which do not contain an explicit input transformation to transform the source inputs to corresponding follow-up inputs, cannot be reused with new source inputs to enhance test adequacy. In this paper, we propose MR-Adopt (Automatic Deduction Of inPut Transformation) to automatically deduce the input transformation from the hard-coded source and follow-up inputs, aiming to enable the encoded MRs to be reused with new source inputs. With typically only one pair of source and follow-up inputs available in an MR-encoded test case as the example, we leveraged LLMs to understand the intention of the test case and generate additional examples of source-followup input pairs. This helps to guide the generation of input transformations generalizable to multiple source inputs. Besides, to mitigate the issue that LLMs generate erroneous code, we refine LLM-generated transformations by removing MR- irrelevant code elements with data-flow analysis. Finally, we assess candidate transformations based on encoded output relations and select the best transformation as the result. Evaluation results show that MR-Adopt can generate input transformations applicable to all experimental source inputs for 72.00% of encoded MRs, which is 33.33% more than using vanilla GPT-3.5. By incorporating MR- Adopt-generated input transformations, encoded MR-based test cases can effectively enhance the test adequacy, increasing the line coverage and mutation score by 10.62% and 18.91%, respectively. Comments: NOTE: Accepted to ASE 2024 Subjects: Software Engineering (cs.SE) Cite as: arXiv:2408.15815 [cs.SE] (or arXiv:2408.15815v2 [cs.SE] for this version) https://doi.org/10.48550/arXiv.2408.15815 Focus to learn more arXiv-issued DOI via DataCite Journal reference: In Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering (ASE 2024), 557-569 Related DOI : https://doi.org/10.1145/3691620.3696020 Focus to learn more DOI(s) linking to related resources Submission history From: Congying Xu [ view email ] [v1] Wed, 28 Aug 2024 14:24:48 UTC (11,582 KB) [v2] Sat, 11 Apr 2026 09:31:33 UTC (11,582 KB) Full-text links: Access Paper: View a PDF of the paper titled MR-Adopt: Automatic Deduction of Input Transformation Function for Metamorphic Testing, by Congying Xu and 6 other authors View PDF HTML (experimental) TeX Source view license Current browse context: cs.SE < prev | next > new | recent | 2024-08 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
- Metamorphic Testing for Scientific Software Using Geometrically Representable Input Data#387488
- Modelstamp: Pre-Deserialization Verification of Machine-Learning Artifacts and Runtime Environment State#632794
- TTPrint: Evidence-Grounded TTP Extraction via Diverge-then-Converge Verification#224399
- Cas9 interrogates DNA in discrete steps modulated by mismatches and supercoiling#620014
- Test-Time Scaling via Error Localization#394403
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive