Mutation testing of smart contracts at scale

Pieter Hartel, Richard Schumi
9/27/2019
cs.SE

Official code: pieterhartel/Mutation-at-scale (2 stars, Shell, last commit 2026-06-25).

Abstract

It is crucial that smart contracts are tested thoroughly due to their immutable nature. Even small bugs in smart contracts can lead to huge monetary losses.

Show full abstract

However, testing is not enough; it is also important to ensure the quality and completeness of the tests. There are already several approaches that tackle this challenge with mutation testing, but their effectiveness is questionable since they only considered small contract samples. Hence, we evaluate the quality of smart contract mutation testing at scale. We choose the most promising of the existing (smart contract specific) mutation operators, analyse their effectiveness in terms of killability and highlight severe vulnerabilities that can be injected with the mutations. Moreover, we improve the existing mutation methods by introducing a novel killing condition that is able to detect a deviation in the gas consumption, i.e., in the monetary value that is required to perform transactions. This paper has a replication package at https://github.com/pieterhartel/Mutation-at-scale

View on arXivView PDF

Code Implementations(1)

Mutation testing of smart contracts at scale

20Shell, JavaScriptDec 24, 20195 months ago

Similar Papers

Cite this paper

@article{hartel2019mutation,
  title  = {Mutation testing of smart contracts at scale},
  author = {Pieter Hartel and Richard Schumi},
  year   = {2019},
  eprint = {1909.12563},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.12563}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1909.12563.svg)](https://codeofpaper.com/paper/1909.12563)

Discussion