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.
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.
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)