-
You should have python (preferably the latest stable release) on your machine To install python, checkout the Python website. It is recommended to use virtualenv to run. Please refer to the Python website for more information.
-
Create your venv in console:
python3 -m venv venv
-
Activate your venv in console:
source venv/bin/activate
-
Run
pip3 install -r requirements.txt
in root directory of the project to install all dependencies.
-
Start your
erigon
DEV node andrpcdaemon
node. There is a guide on how to do this in the DEV_CHAIN. Please make sure you pull latest code before running the tests. -
Run tests either one by one, or all together:
- For all tests to execute: run
python3 -m pytest
when being inerigon-automated-testing
directory. In order to run specific test to run you may execute:python3 -m pytest tests/test_block_creation_mvp.py::TestMVPTestCase::test_valid_transactions
- In a case of failed tests results are printed on screen and detailed report is kept in result.xml
Use --no-skips to run even 'skipped' tests