Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forc could have an integrated mutation-testing tool. #924

Open
nfurfaro opened this issue Mar 10, 2022 · 0 comments
Open

Forc could have an integrated mutation-testing tool. #924

nfurfaro opened this issue Mar 10, 2022 · 0 comments
Labels
enhancement New feature or request forc-test Everything related to the `forc-test` lib and `forc test` command. P: medium testing General testing

Comments

@nfurfaro
Copy link
Contributor

nfurfaro commented Mar 10, 2022

I propose adding mutation-testing capabilities to Forc.

There are a number of tools available now for mutation testing solidity, but the only one I’ve used personally is Vertigo.
For anyone not familiar, mutation testing is essentially a way of testing the quality of your tests themselves, which is a very helpful thing to check. It is very possible to have excellent test coverage, while also having poor-quality tests.

Background:

https://medium.com/swlh/introduction-into-mutation-testing-d6512dc702b0

Here's an open issue for mutation testing in the foundry repo with some great discussion around implementation details: foundry-rs/foundry#478

Other tools (solidity-specific):

Optionally, if Forc were made to support plugins, this could be added later by anybody, maybe even one of the authors of existing tools for Solidity.

@nfurfaro nfurfaro added enhancement New feature or request testing General testing labels Mar 10, 2022
@nfurfaro nfurfaro moved this to Todo in Fuel Network Mar 10, 2022
@nfurfaro nfurfaro added the forc-test Everything related to the `forc-test` lib and `forc test` command. label Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request forc-test Everything related to the `forc-test` lib and `forc test` command. P: medium testing General testing
Projects
None yet
Development

No branches or pull requests

2 participants