Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 602 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 602 Bytes

TON Code Coverage

This package provides a set of tools to build a code coverage report for TON smart contracts. Integrated directly with @tact-lang/emulator.

Installation

yarn add @tact-lang/coverage @ton/core @ton/crypto

Usage

import { beginCoverage } from "@tact-lang/coverage";

// Call this function before you start executing your contract.
beginCoverage();

// ... Execute your contract via @tact-lang/emulator

// Generate report
completeCoverage('... path to boc files with contracts ...');

// Find out the coverage report next to boc file

License

MIT