-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Add E2E tests for geth and ganache dev clients #3122
Conversation
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 good to me! I only dropped some comments to have a more consistency code style.
This looks really like a great start, cool! 😄 How long is the additional test/CI run time with this (just out of interest)? |
@holgerd77 The existing (non-e2e) tests are really fast.. >2500 tests in 40s. E2E time for only ~30 tests looks like this (including client launch):
So...it's slower. To me it seems like the tests worth writing for E2E are mostly about checking that this complex transaction sending logic executes correctly for both instamine and longer duration blocks. And maybe also that the various client responses are formatted as expected. |
@cgewecke Ah, thanks, that all sounds pretty fast to me, I am more used to count test time in minutes than in seconds, lol. 😛 |
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.
Added some simple events tests
@nivida Have updated - this ready for another look-over... (Rebased against 1.x to fix a package-lock.json merge conflict) |
* Add E2E tests for geth and ganache dev clients * Replace missing run build step in CI * Fix bug in deploy confirmation test (ganache) * Add assertion to confirmation handler tests * Fix formatting / remove ethereumjs-tx test * Add simple events tests
#2682 (original) and part of #3098 (E2E Proposal)
The tests run across these combinations.....
Things discovered by the test suite:
confirmation handler over ws for ganache on deployment does not fire.confirmation handler over ws fires each second for geth automineTried to make this as simple as possible. I think the CI part will fit into 2.x without too many problems. It's just some small shell scripts.
I used this geth-dev-assistant wrapper to launch geth - it's small, all the APIs are exposed and you can pull recent images with it. I would be into publishing something like this in the web3-js org so anyone with permissions there can edit it as they wish and make necessary improvements.
To do in future....