An open API service indexing awesome lists of open source software.

https://github.com/runtimeverification/ercx-vscode

VSCode support for ERCx
https://github.com/runtimeverification/ercx-vscode

Last synced: 3 months ago
JSON representation

VSCode support for ERCx

Awesome Lists containing this project

README

          

# VSCode for ERCx

This extension provides a way to run the [ERCx](https://ercx.runtimeverification.com/) tests inside VSCode.
When you open a .sol file, click on the code lens above the contract name to generate
the tests, then click run on the testing view.

The Extension uses the [ERCx API](https://ercx.runtimeverification.com/open-api) and a full suite of tests.
It usually takes around 2 minutes depending on server load.

The Extension only supports a single self-contained Solidity file as input for now.

You need to install an extension for Solidity syntax highlighting for this extension to work
as it activates `onLanguage:solidity`.

![loop](https://raw.githubusercontent.com/runtimeverification/ercx-vscode/5ea45164451df9d0cb4505f7d9bc0540724a6572/media/ercx-loop.gif)

## Set up the API Key

To utilize this extension, you must first set up the API key. You can obtain one from the [ERCx Open API](https://ercx.runtimeverification.com/open-api) page.

After obtaining the key, proceed to set it within the VS Code settings:

```json
{
...
"ercx.apiKey": "xxxx",
...
}
```