Skip to content

scaleton-labs/coverage-collector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

TVM smart-contract code coverage collector

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 91.5%
  • TypeScript 8.4%
  • JavaScript 0.1%