-
Notifications
You must be signed in to change notification settings - Fork 41
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(test): E2E tests #145
base: main
Are you sure you want to change the base?
feat(test): E2E tests #145
Conversation
009045a
to
815c4fb
Compare
test/e2e/lib/bats
Outdated
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.
could we potentially install bats (and support/assert libs) through mise?
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.
Unfortunately not, they do not package them as binaries, especially the assert & support don't expose a binary - they just need to be sourced into the test file.
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.
Actually I found bats
itself in the package registries so I dropped that submodule, the support & assert remain
fd93ffe
to
ef98af2
Compare
fb85670
to
9e54fe2
Compare
local OP_GETH_ISTHMUS_TIME=$(jq '.result.protocols.eth.config.isthmusTime' <<< $OP_GETH_NODE_INFO_JSON) | ||
assert_equal "$OP_GETH_ISTHMUS_TIME" "0" | ||
|
||
kurtosis enclave rm -f $ENCLAVE_ID |
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.
I'm worried we might be leaking enclaves if the tests fail.
Should we have "kurtosis enclave add/rm" in setup/teardown functions around the test itself (or at the suite level to save time/resources)?
In this PR
The ultimate goal of this PR is proposal of E2E testing strategy for the
optimism-package
based onBATS
. It is not intended to be merged in one go - it combines several steps needed to get to the point where CI E2E pipeline is running:mise.toml
for developer tooling setupJustfile
building and testingBATS
git submodules (the standard way of addingBATS
)