Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Piper/add property based testing for abi encoding #355

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

pipermerriam
Copy link
Member

@pipermerriam pipermerriam commented Jun 13, 2016

What was wrong

Property based testing is a way to write test cases such that they can find edge cases in your code that you might not otherwise find.

What does this PR do?

This PR adds a single test case to the ABI encoding that tests that a round trip through abi.decode_abi(abi.encode_abi(...)) always preserves the original value.

This test case is facilitated by hypothesis a property based testing library for python.

Alongside this are some new caching instructions for travis so that:

  • pip dependencies are cached between builds
  • the testing fixtures that hypothesis uses are preserved.

Cute animal picture

8d46daeb44c7af90b38e26361b76603a

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 76.649% when pulling f328acb on pipermerriam:piper/add-property-based-testing-for-abi-encoding into 79e78c3 on ethereum:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 76.649% when pulling f328acb on pipermerriam:piper/add-property-based-testing-for-abi-encoding into 79e78c3 on ethereum:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 76.649% when pulling 4d4c8d0 on pipermerriam:piper/add-property-based-testing-for-abi-encoding into 79e78c3 on ethereum:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 76.649% when pulling 4d4c8d0 on pipermerriam:piper/add-property-based-testing-for-abi-encoding into 79e78c3 on ethereum:develop.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants