View Project
Chukti is an open-source testing framework that allows you to write smart contract tests using plain English sentences with Gherkin syntax. It supports both Hardhat + Viem and Forge + Anvil setups.
Chukti is designed to simplify the entire process of testing smart contracts. Here's how it addresses the common pain points of the current smart contract testing ecosystem:
Unified Setup: Chukti supports both Hardhat + Viem and Forge + Anvil setups. You can initialize a new project with a single command, and Chukti will handle the rest. No more worrying about complex configurations or dependencies.
Human-Readable Tests: With Chukti, you write tests in plain English using Cucumber's Gherkin syntax. This makes your tests easy to understand and accessible to all team members, regardless of their technical background.
Predefined Steps: Chukti comes with a set of predefined steps for common operations like deploying contracts, reading and writing to contracts, and comparing results. This reduces the need to write boilerplate code and speeds up the testing process.
Extensible and Customizable: While Chukti provides a lot of functionality out of the box, it's also highly customizable. You can define your own steps and hooks to fit your project's specific needs.
Chukti significantly improves the developer experience by allowing you to write smart contract test scenarios in plain English sentences, just like you are speaking. Here's how:
Natural Language Syntax: Chukti uses Gherkin syntax, which is designed to be human-readable. This means you can write test scenarios that read like plain English sentences, making them easy to understand and communicate.
Collaborative Testing: The readability of Gherkin syntax allows non-technical team members, such as product managers and business analysts, to understand and contribute to the test scenarios. This fosters better collaboration and ensures that everyone is on the same page.