GithubHelp home page GithubHelp logo

drtenma1998 / vertigo-rs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rareskills/vertigo-rs

0.0 0.0 0.0 142 KB

Mutation Testing for Ethereum Smart Contracts, support for Foundry

License: GNU Lesser General Public License v3.0

Python 99.57% Jinja 0.43%

vertigo-rs's Introduction

vertigo-rs

Introduction

This is an actively maintained fork of Joran Honig's vertigo with support for foundry added.

This tool will mutate files in src/ and run forge test to see if the mutant survives. Files that end with .t.sol or have test in their name (including the path) are ignored. Files in lib (or any directory that isn't src/) will not be mutated.

You do not need to specify that you are in a foundry project, the presence of a foundry.toml file will signify to this tool that you are in a foundry repo. If you have configuration files for truffle or hardhat in your project, this tool will get confused. You can temporarily change their names.

git clone https://github.com/RareSkills/vertigo-rs
python setup.py develop

cd <your foundry repo>

python <path-to-this-project>/vertigo-rs/vertigo.py run

cli arguments

--src-dir <contracts-directory>

Changing the source directory. This is usually src/ by default in foundry, but if you have a different name like contracts you can specify it with --src-dir. Default is src/

--exclude-regex <regex>

Don't test files in --src-dir that match this regex. This is useful if you have mocks or tests in a subdirectory of src/

--sample-ratio <float [0-1]>

Don't run every mutation, but run a percentage of them. Useful if you are just checking if everything works end-to-end

--output <file>

Save output to a file instead of stdout. Some terminals don't show the output, so use this option if you don't see an output. Recommended to use generally. Defaults to stdout.

Please see the original readme for the other options, or use the --help option to see the rest.

Maintainers

Jeffrey Scholz RareSkills

Publications and Articles

Practical Mutation Testing for Smart Contracts - Joran J. Honig, Maarten H. Everts, Marieke Huisman

Introduction into Mutation Testing - Joran Honig

Mutation Testing for Smart Contracts - A step by step guide - Joran Honig

If you want to cite vertigo, please use the following:

@InProceedings{10.1007/978-3-030-31500-9_19,
author="Honig, Joran J.
and Everts, Maarten H.
and Huisman, Marieke",
title="Practical Mutation Testing for Smart Contracts",
booktitle="Data Privacy Management, Cryptocurrencies and Blockchain Technology",
year="2019",
publisher="Springer International Publishing",
pages="289--303"
}

vertigo-rs's People

Contributors

joranhonig avatar rareskills avatar jaymcgrath avatar jeffreyscholz avatar maurelian avatar yxliang01 avatar iczc 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.