eth2.0-specs/py_tests
protolambda 9e010da118
rename pyspec pkg to eth2spec
2019-04-03 14:18:17 +11:00
..
phase0 rename pyspec pkg to eth2spec 2019-04-03 14:18:17 +11:00
README.md update CI, makefile has test runner now 2019-03-28 23:23:36 +08:00
requirements.txt fix pyspec setup, and update usages: py_tests and in docs 2019-03-28 23:10:16 +08:00

README.md

ETH 2.0 py-tests

These tests are not intended for client-consumption. These tests are sanity tests, to verify if the spec itself is consistent.

There are ideas to port these tests to the YAML test suite, but we are still looking for inputs on how this should work.

How to run tests

Automated

Run make test from the root of the spec repository.

Manual

From within the py_tests folder:

Install dependencies:

python3 -m venv venv
. venv/bin/activate
pip3 install -r requirements.txt

Note: make sure to run make pyspec from the root of the specs repository, to build the pyspec requirement.

Run the tests:

pytest -m minimal_config .