Skip to main content
Cornell University
Learn about arXiv becoming an independent nonprofit.
We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate
arxiv logo > cs > arXiv:1108.1068

Help | Advanced Search

arXiv logo
Cornell University Logo

quick links

  • Login
  • Help Pages
  • About

Computer Science > Software Engineering

arXiv:1108.1068 (cs)
[Submitted on 4 Aug 2011 (v1), last revised 17 Aug 2011 (this version, v2)]

Title:Stateful Testing: Finding More Errors in Code and Contracts

Authors:Yi Wei, Hannes Roth, Carlo A. Furia, Yu Pei, Alexander Horton, Michael Steindorfer, Martin Nordio, Bertrand Meyer
View a PDF of the paper titled Stateful Testing: Finding More Errors in Code and Contracts, by Yi Wei and 7 other authors
View PDF
Abstract:Automated random testing has shown to be an effective approach to finding faults but still faces a major unsolved issue: how to generate test inputs diverse enough to find many faults and find them quickly. Stateful testing, the automated testing technique introduced in this article, generates new test cases that improve an existing test suite. The generated test cases are designed to violate the dynamically inferred contracts (invariants) characterizing the existing test suite. As a consequence, they are in a good position to detect new errors, and also to improve the accuracy of the inferred contracts by discovering those that are unsound. Experiments on 13 data structure classes totalling over 28,000 lines of code demonstrate the effectiveness of stateful testing in improving over the results of long sessions of random testing: stateful testing found 68.4% new errors and improved the accuracy of automatically inferred contracts to over 99%, with just a 7% time overhead.
Comments: 11 pages, 3 figures
Subjects: Software Engineering (cs.SE)
Cite as: arXiv:1108.1068 [cs.SE]
  (or arXiv:1108.1068v2 [cs.SE] for this version)
  https://doi.org/10.48550/arXiv.1108.1068
arXiv-issued DOI via DataCite
Journal reference: Proceedings of the 26th IEEE/ACM International Conference on Automated Software Engineering (ASE'11). Pgg. 440--443, ACM, November 2011
Related DOI: https://doi.org/10.1109/ASE.2011.6100094
DOI(s) linking to related resources

Submission history

From: Yi Wei [view email]
[v1] Thu, 4 Aug 2011 12:38:29 UTC (381 KB)
[v2] Wed, 17 Aug 2011 14:51:54 UTC (381 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled Stateful Testing: Finding More Errors in Code and Contracts, by Yi Wei and 7 other authors
  • View PDF
  • TeX Source
view license

Current browse context:

cs.SE
< prev   |   next >
new | recent | 2011-08
Change to browse by:
cs

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar

DBLP - CS Bibliography

listing | bibtex
Yi Wei
Hannes Roth
Carlo A. Furia
Yu Pei
Alexander Horton
…
Loading...

BibTeX formatted citation

Data provided by:

Bookmark

BibSonomy Reddit

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

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?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status