Reproduce “Metamorphic Coverage” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Jinsheng Ba, Yuancheng Jiang, Manuel Rigger

Metamorphic Coverage (MC) measures the code exercised by one member of a metamorphic test pair but not the other, capturing differential execution that ordinary cumulative coverage overlooks. Across five testing methods and five C/C++ systems, MC overlapped with 50 of 64 real bug-fix locations, correlated more strongly with known bug counts than line coverage, required roughly 359 times less time than mutation testing, and improved fuzzing results over conventional coverage guidance.

Key insights

  • Differential execution is more informative for metamorphic testing than the union of all code reached by a test suite; MC reflects whether paired inputs create distinct opportunities for an oracle violation.
  • MC is a complementary signal rather than a complete fault-detection guarantee: bugs reached identically by both inputs may receive zero MC, while high differential coverage does not ensure that the metamorphic relation checks the right behavior.
  • The metric can serve both retrospective evaluation—linking covered locations to bug fixes—and prospective test generation without the cost of mutation analysis.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.