Blueprint SDK — tests
Introduction
This article is the reference material for blueprint developers, to consult about testing blueprints. It presents all tooling available in the blueprint SDK for testing blueprints.
Static tests
To validate the syntax of your blueprint, run the following command from Hathor core CLI:
- From source code
- Using Docker
poetry run hathor-cli check-blueprint --file <path_to_your_blueprint>
docker run hathornetwork/hathor-core check-blueprint --file <path_to_your_blueprint>
Unit tests
To perform unit tests on your blueprint, use BlueprintTestCase
. For how to do this, see Unit tests at Get started with blueprint SDK — part 2.
Integration tests
For integration testing of blueprints, nano contracts, and DApps, see Set up a localnet.