Skip to content

Commit

Permalink
Adding cucumber + aruba
Browse files Browse the repository at this point in the history
  • Loading branch information
aisrael committed Mar 17, 2024
1 parent d2b4765 commit b20e4fb
Show file tree
Hide file tree
Showing 8 changed files with 134 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,13 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: |
cargo clippy
cucumber:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: ruby/setup-ruby@v1
- name: Cucumber + Aruba tests
run: |
cucumber
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ghctl
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-3.3.0
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gem 'aruba', '~> 2.2.0'
gem 'cucumber', '~> 9.1.2'
gem 'rubocop', '~> 1.62.1'
86 changes: 86 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
GEM
remote: https://rubygems.org/
specs:
aruba (2.2.0)
bundler (>= 1.17, < 3.0)
contracts (>= 0.16.0, < 0.18.0)
cucumber (>= 8.0, < 10.0)
rspec-expectations (~> 3.4)
thor (~> 1.0)
ast (2.4.2)
bigdecimal (3.1.7)
builder (3.2.4)
contracts (0.17)
cucumber (9.1.2)
builder (~> 3.2, >= 3.2.4)
cucumber-ci-environment (~> 9.2, >= 9.2.0)
cucumber-core (~> 12.0)
cucumber-cucumber-expressions (~> 17.0)
cucumber-gherkin (> 24, < 27)
cucumber-html-formatter (> 20.3, < 22)
cucumber-messages (> 19, < 25)
diff-lcs (~> 1.5)
mini_mime (~> 1.1, >= 1.1.5)
multi_test (~> 1.1, >= 1.1.0)
sys-uname (~> 1.2, >= 1.2.3)
cucumber-ci-environment (9.2.0)
cucumber-core (12.0.0)
cucumber-gherkin (>= 25, < 27)
cucumber-messages (>= 20, < 23)
cucumber-tag-expressions (~> 5.0, >= 5.0.4)
cucumber-cucumber-expressions (17.0.2)
bigdecimal
cucumber-gherkin (26.2.0)
cucumber-messages (>= 19.1.4, < 22.1)
cucumber-html-formatter (21.3.0)
cucumber-messages (> 19, < 25)
cucumber-messages (22.0.0)
cucumber-tag-expressions (5.0.6)
diff-lcs (1.5.1)
ffi (1.16.3)
json (2.7.1)
language_server-protocol (3.17.0.3)
mini_mime (1.1.5)
multi_test (1.1.0)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
racc (1.7.3)
rainbow (3.1.1)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rubocop (1.62.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.2)
parser (>= 3.3.0.4)
ruby-progressbar (1.13.0)
sys-uname (1.2.3)
ffi (~> 1.1)
thor (1.3.1)
unicode-display_width (2.5.0)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
aruba (~> 2.2.0)
cucumber (~> 9.1.2)
rubocop (~> 1.62.1)

BUNDLED WITH
2.5.3
11 changes: 11 additions & 0 deletions features/basic.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Feature: Basic features

Scenario: Display the version

To display the version, just run `ghctl version`

When I run `ghctl version`
Then the output should contain:
"""
ghctl version 0.3.3
"""
17 changes: 17 additions & 0 deletions features/support/aruba.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true

require 'aruba/cucumber'

BASEDIR = File.expand_path('../../', __dir__)

Aruba.configure do |config|
config.command_runtime_environment = {
'PATH' => "#{File.join(BASEDIR, 'target', 'release')}:#{ENV['PATH']}"
}
end

Before do
Dir.chdir(BASEDIR) do
`cargo build --release`
end
end
1 change: 1 addition & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# frozen_string_literal: true

0 comments on commit b20e4fb

Please sign in to comment.