-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feat/bats docs tdd #4
base: master
Are you sure you want to change the base?
Conversation
solution: separate cmd and flag default env vars
problem: bats tests default geth cmd should not include flags
solution: share set up env code by using bats 'load' call
tests/bats/api_env.bash
Outdated
#!/usr/bin/env bats | ||
|
||
# Current build. | ||
: ${GETH_CMD:=$GOPATH/bin/geth} |
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.
so refactory, much sharey
tests/bats/api_env.bash
Outdated
|
||
# Current build. | ||
: ${GETH_CMD:=$GOPATH/bin/geth} | ||
: ${GETH_OPTS:=--datadir $BATS_TMPDIR \ |
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.
Much sharing, very factored.
2152043
to
9777aa0
Compare
#!/usr/bin/env bats | ||
|
||
# Current build. | ||
# NOTE: Use the given temp data dir from Bats as ephemeral data-dir. |
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.
Use the given temp data dir from Bats as ephemeral data-dir.
|
||
# So that we don't have to bundle hardcoded test cases and dependencies | ||
# like this dumb key along with geth production executables. | ||
# NOTE- |
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.
It also seems like someday it would be good to extract this kind of testing to it's own repo.
So that we don't have to bundle hardcoded test cases and dependencies
like this dumb key along with geth production executables.
No description provided.