-
Notifications
You must be signed in to change notification settings - Fork 201
Migrates SDK CLI tests to test-environment
#1288
Conversation
`GSNRecipient` doesn't implement `_preRelayedCall` and `_postRelayedCall` so our `Counter` contract needs to otherwise it is abstract and can't be `oz create`d. Add empty implementations of `_preRelayedCall` and `_postRelayedCall`
Remove version `npm install @openzeppelin/upgrades@2.4.0` as `@openzeppelin/upgrades@2.4.0` doesn't exist and to use the latest version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work Igor! Left a minor suggestion, after addressed, it's good to merge for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I left a couple minor comments and questions. There's a couple duplicated changes with the current master, but I'm not sure it'll be easy to improve that, given the mess I've made of the repo's history 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a commit moving some leftover account destructurings inside the describe blocks. Great work @ylv-io!
This makes all tests in
cli
run usingtest-environment
with Mocha and Chai instead oftruffle test
. On my machine, a clean run using this setup takes 3min 38s, whilemaster
takes 5min 02s. There is a massive difference on the time until the first test starts executing.This PR is similar to a PR by @nventuro Migrate Lib tests.
Migration
contract
statements replaced bydescribe
.I had to fix some tests due to differences how
truffle test
andtest-env
operate but they are rather small and trivial.PS Commit history is a mess. Sorry for that but it is possible to review only file changes.