planetmint/integration
Lorenz Herzberger df7c1e1ccf
Enhance integration test suite (#62)
* restructering, added helper, split cli tests for later

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>

* fixed threshold test

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>

* added acceptance tests to integration test suite

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>

* added different threshold signature test scenarios

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>

* started chain-migration test implementation

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>

* fixed linter errors

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>

* removed -s from test command

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2022-03-24 14:24:32 +01:00
..
2022-03-24 14:24:32 +01:00
2022-03-08 14:38:40 +01:00

Integration test suite

This directory contains the integration test suite for Planetmint.

The suite uses Docker Compose to spin up multiple Planetmint nodes, run tests with pytest as well as cli tests and teardown.

Running the tests

Run make test-integration in the project root directory.

By default the integration test suite spins up four planetmint nodes. If you desire to run a different configuration you can pass SCALE=<number of nodes> as an environmental variable.

Writing and documenting the tests

Tests are sometimes difficult to read. For integration tests, we try to be really explicit on what the test is doing, so please write code that is simple and easy to understand. We decided to use literate-programming documentation. To generate the documentation for python tests run:

make docs-integration