Scribble
Test automation · Free
Specification-based Solidity contract instrumentation: it converts behavioral assertions into runtime checks for smart contract logic testing.
Also known as: consensys/scribble; scribble

What you can use for free
Code and local use under Apache-2.0.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Test Solidity contracts against specifications
- Instrument the contract and run tests checking the added runtime assertions
Example workflow
A possible workflow; this is not a report of hands-on testing.
Test Solidity contracts against specifications.
Before you start
- One important workflow and its expected result.
- A test environment with controlled data.
Steps
- Define expected contract properties as supported annotations.
- Instrument the contract and run tests checking the added runtime assertions.
- Run the check locally and save the report in CI.
Check your result
- The check detects a deliberately broken workflow.
- The result can be reproduced without depending on a personal session.
Choosing Scribble
Test Solidity contracts against specifications
Choose this when
- Test Solidity contracts against specifications
- Instrument the contract and run tests checking the added runtime assertions
Requirements
- Solidity source with specifications and the eth-scribble npm CLI are required; the editor extension is optional.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: Apache-2.0 for the code; third-party components retain their own terms.
- The specification language intentionally cannot express every possible property; assertions do not prove the absence of all contract errors.
Frequently asked questions
What can you use for free in Scribble?
Code and local use under Apache-2.0.
What additional costs might arise with Scribble?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for Scribble?
Apache-2.0 for the code; third-party components retain their own terms.
How do you get started with Scribble?
Define expected contract properties as supported annotations. Instrument the contract and run tests checking the added runtime assertions. Run the check locally and save the report in CI.
How can Scribble be used with fuzzing?
The README positions this as runtime verification for property-based testing: prepared contracts can be tested with Diligence Fuzzing or Mythril. Checked properties are explicitly defined.
Is the VS Code extension built into the CLI?
No. The syntax highlighting and suggestion extension is maintained in a separate repository; distinguish extension and CLI errors.
License
Apache-2.0 for the code; third-party components retain their own terms.
Apache 2.0 — permissive license with patent terms
You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.
License termsTechnologies and topics
- Scribble
- test
- Development