Giter VIP home page Giter VIP logo

nanofuzz's Introduction

NaNofuzz

NaNofuzz is a fast, easy-to-use automatic test suite generation tool for Typescript that integrates with a developer's VS Code workflow. We like working code, and NaNofuzz is designed to be used during testing or development to more quickly reach working code nirvana. NaNofuzz is available in the the VS Code Marketplace.

image

Unlike some past automatic test suite generation tools, NaNofuzz takes an approach similar to fuzzing and uses an implicit oracle to detect likely errors. Surprisingly, this approach can quickly find many errors. NaNofuzz draws your attention to a test if it:

  • throws a runtime exception
  • returns null, NaN, Infinity, or undefined
  • does not terminate within a configurable period of time

These design choices allow NaNofuzz to be fast, lightweight, easy to integrate into an everyday workflow, and help developers quickly find important edge cases more quickly.

NaNofuzz supports standard and arrow functions with any mixture of the following parameter types:

  • Numbers (integers and floats, signed and unsigne)
  • Strings
  • Booleans
  • Literal object types
  • n-dimension arrays of any of the above
  • Optional and mandatory parameters

NaNofuzz automatically generates a test suite in these formats for use in CI:

  • Jest

The following are not yet supported:

  • Type references, deconstructed types, OR types, Tuples, Enums, Generics, or Function types
  • Non-finite numeric inputs (NaN, Infinity, null)
  • Object methods
  • Compiling to module formats other than CommonJS (see VS Code issue #130367)
  • Support for stateful, flaky, or non-deterministic tests
  • Sandboxing external side-effects, mocks, or stubs
  • Custom generators, validators, and filters
  • Test case minimization

NaNofuzz is a research project not presently intended for production use. Contributions are welcome to address the limitations above.

NaNofuzz Research Paper

To reference NaNofuzz in your research, we request you to cite our upcoming ESEC/FSE'23 paper:

Matthew C. Davis, Sangheon Choi, Sam Estep, Brad A. Myers, and Joshua Sunshine. Nanofuzz: a usable tool for automatic test generation. In Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering, 2023. (accepted and pending publication; pre-print)

nanofuzz's People

Contributors

cmumatt avatar samestep avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.