mirror of
https://github.com/planetmint/planetmint.git
synced 2025-03-30 15:08:31 +00:00

* added api to get the latest block /api/v1/blocks/latest Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com> * git fixed flake8 whitespace warnings Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com> * fixed flake8 warnings: removed too many newline Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com> * added missing deps in the testing docker files Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com> * install meson prior to the rest to have it availabe and fix the issue of missing depenceny declarations within zenroom Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com> * added missing ninja dependency Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com> * fixed zenroom dependency Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
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