-
Notifications
You must be signed in to change notification settings - Fork 491
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
E2E specs #698
E2E specs #698
Conversation
@@ -25,3 +25,6 @@ jobs: | |||
bundler-cache: true | |||
- run: bundle exec rubocop | |||
- run: bundle exec rspec | |||
- name: E2E tests | |||
if: ${{ success() && matrix.os != 'macos-10.15' }} |
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.
We can't run E2E tests on Mac because it doesn't come with docker, see actions/runner-images#17.
@@ -14,9 +14,9 @@ def name | |||
end | |||
|
|||
# :nocov: | |||
def run | |||
def run(*args) |
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.
This is how run method is defined in Rake::Application
.
@@ -8,14 +8,14 @@ class Pretty | |||
attr_reader :script | |||
|
|||
def initialize(script) | |||
@script = script | |||
@script = Shellwords.shellsplit(script) |
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.
This was a bug I introduced in #686, E2E tests caught it.
@@ -0,0 +1,27 @@ | |||
-----BEGIN OPENSSH PRIVATE KEY----- |
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.
Usually this isn't safe to keep in repos, but I generated this key just for e2e purposes.
Adds E2E tests. The idea is to create a docker container into which we can SSH and execute mina commands on it. I added three specs which are ran in this order:
mina deploy
before callingmina setup
first (it fails)mina setup
(it passes)mina deploy
(it passes since setup has been run)I'll add more tests later, this was just initially added to make it work.