eth2.0-specs/py_tests/README.md

31 lines
676 B
Markdown
Raw Normal View History

2019-03-27 18:30:47 +00:00
# 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
2019-03-27 18:30:47 +00:00
From within the py_tests folder:
Install dependencies:
```bash
python3 -m venv venv
. venv/bin/activate
2019-03-27 18:30:47 +00:00
pip3 install -r requirements.txt
```
Note: make sure to run `make pyspec` from the root of the specs repository, to build the pyspec requirement.
2019-03-27 18:30:47 +00:00
Run the tests:
```
pytest -m minimal_config .
```