Git Product home page Git Product logo

vscode-tarantula's Introduction

get in touch with Consensys Diligence
[ ๐ŸŒ ๐Ÿ“ฉ ๐Ÿ”ฅ ]

๐Ÿ‘พ vscode-tarantula

This add-on uses JoranHonig/tarantula to highlight the areas code that are most likely causing a failing test suite by utilizing the tarantula fault localisation algorithm.

Screenshot 2021-01-22 at 11 40 06

  • Text Editor code line highlighting
  • Fault Localization Highscore view
  • Tarantula raw output window

How To

This plugin looks for the test & test coverage output provided by solidity-coverage. To get this output, you need to run solidity-coverage with the --matrix option. This will make it output two files:

testMatrix.json - Contains information on which lines are covered by which tests.

mochaOutput.json - The plain test results as provided by the mocha testing framework

This plugin will automatically see when those files are created or changed, and update your code view.

If the test suite succeeded, then vscode shouldn't affect the editor at all. There is no bug breaking the test suite after all.

If the test suite failed however, then vscode-tarantula will give you two ways to find the reason why your test suite is failing.

  1. It will highlight the lines which are suspect of breaking your test suite (the denser the background colour, the more suspect that line is)
  2. You can use the window on the left to directly navigate to the lines which have the highest suspect rating.

Credits

Release Notes

see CHANGELOG


vscode-tarantula's People

Contributors

joranhonig avatar tintinweb 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.