Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eth-mutants

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-mutants

A mutation testing tool for Solidity contracts

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eth-mutants

eth-mutants is a mutation testing tool for Solidity contracts.

Installation

npm install eth-mutants

Usage

The `preflight` command will show the number of possible mutations found
and print some compact diffs for each mutation. Use this to understand
how long it may take to visit all mutations and please report any invalid 
ones.

The test command will start applying mutations and running your tests to check if they pass. It will report the result of each mutation.

eth-mutants test

This tools makes some important assumptions about your workspace, which should hold true for most Truffle-based projects, but I plan on adding options to override them soon:

  • Your contract files are in the contracts/ directory
  • You run your tests with npm test which returns a non-zero error code in case of failure.

Mutators

The only mutation implemented at the moment is called boundary-condition and replaces < adn > for <= and >= and vice-versa. Contributions for mutators are especially welcomed.

Author

Federico Bond

LICENSE

MIT

Keywords

FAQs

Package last updated on 15 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc