Docs Category: Testing


To Share and +4 nLEARNs Login with NEARIntegration Tests Note: Simulation tests are no longer actively supported. NEAR Simulator was meant to be an in-place replacement of a blockchain environment for the purpose of testing NEAR contracts. However, simulating NEAR ledger turned out to be a much more complex endeavor than was anticipated. Eventually, the …

integration-tests Read More »


To Share and +4 nLEARNs Login with NEARUnit Tests Testing contract functionality can be done through the cargo test framework. These tests will run with a mocked blockchain and will allow testing function calls directly without having to set up/deploy to a network and sign serialized transactions on this network. A common framework for tests, …

unit-tests Read More »

Unit Testing

To Share and +4 nLEARNs Login with NEARimport {CodeTabs, Language, Github} from "@site/components/codetabs" Unit tests allow you to test the contract methods individually. They are suitable to check the storage is updated correctly, and that methods return their expected values. They are written in the contract’s language and execute locally. If you used one of …

Unit Testing Read More »

Integration Test

To Share and +4 nLEARNs Login with NEARimport {CodeTabs, Language, Github} from "@site/components/codetabs" Integration tests enable to deploy your contract in the NEAR testnet or a local sandbox, and create test-users to interact with it. In this way, you can thoroughly test your contract in a realistic environment. Moreover, when using the local sandbox you …

Integration Test Read More »

Scroll to Top
Report a bug👀