Skip to content
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

Test scripts for ethclient.ex #65

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Test scripts for ethclient.ex #65

wants to merge 10 commits into from

Conversation

mmsc2
Copy link
Contributor

@mmsc2 mmsc2 commented May 20, 2022

No description provided.

@mmsc2 mmsc2 linked an issue May 20, 2022 that may be closed by this pull request
Copy link

@iver iver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More tests are required to validate that when the system fails we have contemplated how it should behave and, above all, indicate that the system is reliable.

eth_client/test/eth_client_test.exs Outdated Show resolved Hide resolved
eth_client/test/eth_client_test.exs Outdated Show resolved Hide resolved
eth_client/test/eth_client_test.exs Outdated Show resolved Hide resolved
iver
iver previously approved these changes May 21, 2022
Comment on lines +8 to +9
setup_all do
contract = EthClient.deploy(@bin, @abi)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change, you can now remove the tags from the tests (lines 39, 64, etc)

Copy link

@iver iver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the advantage of having a random seed helps to validate the stability of the system

@@ -1 +1,2 @@
ExUnit.configure(seed: 0)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need to set the seed value to 0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write unit tests for lib/eth_client.ex
3 participants