Skip to content

Automated Testing Overview

tawmaz edited this page Jan 4, 2022 · 1 revision

Three types of testing are used by the Bastyon developers to verify the node release meets a consistent quality and performance bar:

  • Automated unit tests which are run by compiling the PocketNetCore software with the "make check" command and verifying all tests pass. Most of there tests have been inherited from from BitcoinCore with some new tests added by Bastyon developers.

  • Intrusive (read-only) load testing which creates new transactions on the blockchain including increasing number of registrations, comments, ratings, follows etc. These test simulate a large number of users registering and creating content on Bastyon. Tests measure node response time for RPC requests under load. Because this group of tests generates new data on the blockchain and sqlite db, it should only be run against testnet.

  • Non-intrusive load testing simulating front-end activity by requesting API to view content, simulating large number of users viewing Bastyon, but not creating new content. These tests will not generate contents on the block chain and can be run against either testnet or mainnet nodes.

  • Running both intrusive and non intrusive tests simultaneously to measure overall performance of the node.

Clone this wiki locally