livepeer / protocol

Livepeer protocol
MIT License
152 stars 45 forks source link

Refactor Foundry tests: create base test contract to validate upgradeability and governance logic #555

Closed RiccardoBiosas closed 2 years ago

RiccardoBiosas commented 2 years ago

The Livepeer Protocol codebase has recently started implementing foundry/dapptools unit tests and fuzzing tests as part of its pipeline. However, as it stands now, the test contracts include repeating logic and interfaces which hurt their readability and easiness of refactoring should future changes in the business logic also require changes in the pertinent tests.

For the above purpose, the focus of the current issue is: