You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.
We need to have integration testing with the contracts to be able to mock the contracts on the node and not needing to deploy the contracts for testing features on the node.
The text was updated successfully, but these errors were encountered:
Common test input output maps: We can have a common input/output maps which dictate what the state root should be preProcessing and postProcessing, they also define what the testing data will be exactly. This is great because now we don't need to interact with contracts at all and can test individual components of the system from truffle tests and from go-node. The only con is that it requires a considerable effort to implement. Ideally it would be something like: https://github.com/ethereum/eth2.0-specs/tree/dev/tests
Having fixtures as truffle test, which preset the contracts to whatever state you want them to be by running tests. So a deposit fixture will deploy new contracts, update addresses on the go-node, and make a deposit on the contract, while the node can now do whatever it does when it receives a new deposit. The fixture can then query the DB to check if the state on the node matches the state on the contracts. This allows us to do proper integration testing with actual contracts with the cons being it would be a bit slow as we would be sending actual transactions.
We need to have integration testing with the contracts to be able to mock the contracts on the node and not needing to deploy the contracts for testing features on the node.
The text was updated successfully, but these errors were encountered: