New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate integration testing against an ethereum node #38
Comments
Surprised no one else has ever taken approach 2 before? My intuition is that staying in the golang ecosystem would be ideal. It could potentially simplify the codebase. |
Also consider using Ganache-CLI which supports RPC. Using this, we may be able to get some testing deployment scripts to automatically complile & deploy our smart contracts on a local instance (within the Docker image). |
Since Ganache-CLI is out, I'm leaving this link here for me to check out later. https://github.com/ethereum/go-ethereum/wiki/Private-network It might not be until the weekend until I can really dive into it though. What I'm hoping for is we'll have a common config to use for the genesis block, and run it for testing in a (relatively) light-weight Docker image. |
@se3000 @dimroc Sorry, missed this last week. It looks like we weren't actually using a library in the example I mentioned to Steve, but instead just doing I haven't seen a lot of instances of tests like #2, possibly because you might not always be able to spin up the things you need directly from go. (Or you may not be able to control them the way you'd like.) If those don't seem like concerns in this case, maybe it's worth exploring. Let me know if you want more pointers on setting up a test harness for #1. |
Thanks @toddboom. I want to capture some more information here for the sake of discussion. Scenario 1: Docker Container
Scenario 2: Geth Goroutine
|
After some more offline discussion we've opted go with scenario 1, with the key reasons being the desire to have separate processes, future proofing ourself against having to spin everything up in go routines when stitching up a network with the likes of geth, parity, btcd, ipfs, and being able to preconfigure each service to use the right ports and addresses. |
…image-tag-for-feeds-ui Add backup og:image tag for feeds ui
…image-tag-for-feeds-ui Add backup og:image tag for feeds ui
As of now, we have two approaches:
Let's discuss the pros and cons of each and perhaps come up with other ideas.
The text was updated successfully, but these errors were encountered: