prysm-pulse/testing/spectest
Preston Van Loon 2ad0ad5877
Spectests: Refactor ssz_static tests to deduplicate code and test custom HTR (#10081)
* Copy over refactoring efforts from PR #9402

* Remove unused type

* godoc commentary

* Better example err msg

* Better example err msg
2022-01-13 19:52:39 +00:00
..
general/phase0/bls Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
mainnet Bellatrix spec tests (#10014) 2022-01-10 18:27:08 +00:00
minimal Bellatrix spec tests (#10014) 2022-01-10 18:27:08 +00:00
shared Spectests: Refactor ssz_static tests to deduplicate code and test custom HTR (#10081) 2022-01-13 19:52:39 +00:00
utils Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
README.md Move Spectests Into a Testing/ Folder (#9582) 2021-09-14 16:02:58 +00:00

Spec Tests

Spec testing vectors: https://github.com/ethereum/consensus-spec-tests

To run all mainnet spec tests:

bazel test //... --test_tag_filters=spectest

Minimal tests require --define ssz=minimal setting and are not triggered automatically when //... is selected. One can run minimal tests manually, though:

bazel query 'tests(attr("tags", "minimal, spectest", //...))' | xargs bazel test --define ssz=minimal