Skip to content

A working prototype of writing pure unit tests in FunC for TON blockchain

Notifications You must be signed in to change notification settings

BlockApex/unit_tests_ton

Repository files navigation

unit_tests_ton

Source code as reference, for the blog published by BlockApex on "Unit Testing FunC Smart Contracts"

Project structure

  • contracts - source code of all the smart contracts of the project and their dependencies.
  • wrappers - wrapper classes (implementing Contract from ton-core) for the contracts, including any [de]serialization primitives and compilation functions.
  • tests - tests for the contracts.

Running Tests

You can run the test using npm test after installing dependencies using npm i.

Test Structure

The tests are written in a given when then structure. For optimum understanding follow the blog to write these in a TDD fashion.

Test Results

About

A working prototype of writing pure unit tests in FunC for TON blockchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published