Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cucumber/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gem 'cucumber'
gem 'rspec'
gem 'buildkite-test_collector', git: 'https://github.com/buildkite/test-collector-ruby.git', ref: '863e7fcc5a25457a06a09d223a7f9ae353ce9254'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tom's vibe coded PR buildkite/test-collector-ruby#245

87 changes: 87 additions & 0 deletions cucumber/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
GIT
remote: https://github.com/buildkite/test-collector-ruby.git
revision: 863e7fcc5a25457a06a09d223a7f9ae353ce9254
ref: 863e7fcc5a25457a06a09d223a7f9ae353ce9254
specs:
buildkite-test_collector (2.9.0)

GEM
remote: https://rubygems.org/
specs:
bigdecimal (3.1.9)
builder (3.3.0)
cucumber (9.2.1)
builder (~> 3.2)
cucumber-ci-environment (> 9, < 11)
cucumber-core (> 13, < 14)
cucumber-cucumber-expressions (~> 17.0)
cucumber-gherkin (> 24, < 28)
cucumber-html-formatter (> 20.3, < 22)
cucumber-messages (> 19, < 25)
diff-lcs (~> 1.5)
mini_mime (~> 1.1)
multi_test (~> 1.1)
sys-uname (~> 1.2)
cucumber-ci-environment (10.0.1)
cucumber-core (13.0.3)
cucumber-gherkin (>= 27, < 28)
cucumber-messages (>= 20, < 23)
cucumber-tag-expressions (> 5, < 7)
cucumber-cucumber-expressions (17.1.0)
bigdecimal
cucumber-gherkin (27.0.0)
cucumber-messages (>= 19.1.4, < 23)
cucumber-html-formatter (21.9.0)
cucumber-messages (> 19, < 28)
cucumber-messages (22.0.0)
cucumber-tag-expressions (6.1.2)
diff-lcs (1.6.2)
ffi (1.17.2)
ffi (1.17.2-aarch64-linux-gnu)
ffi (1.17.2-aarch64-linux-musl)
ffi (1.17.2-arm-linux-gnu)
ffi (1.17.2-arm-linux-musl)
ffi (1.17.2-arm64-darwin)
ffi (1.17.2-x86-linux-gnu)
ffi (1.17.2-x86-linux-musl)
ffi (1.17.2-x86_64-darwin)
ffi (1.17.2-x86_64-linux-gnu)
ffi (1.17.2-x86_64-linux-musl)
mini_mime (1.1.5)
multi_test (1.1.0)
rspec (3.13.1)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.4)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.4)
sys-uname (1.3.1)
ffi (~> 1.1)

PLATFORMS
aarch64-linux-gnu
aarch64-linux-musl
arm-linux-gnu
arm-linux-musl
arm64-darwin
ruby
x86-linux-gnu
x86-linux-musl
x86_64-darwin
x86_64-linux-gnu
x86_64-linux-musl

DEPENDENCIES
buildkite-test_collector!
cucumber
rspec

BUNDLED WITH
2.6.8
7 changes: 7 additions & 0 deletions cucumber/features/sample.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Sample Feature
Feature: Sample feature to demonstrate Cucumber

Scenario: Simple addition
Given I have two numbers 2 and 3
When I add them
Then the result should be 5
12 changes: 12 additions & 0 deletions cucumber/step_definitions/sample_steps.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Given('I have two numbers {int} and {int}') do |int, int2|
@number1 = int
@number2 = int2
end

When('I add them') do
@result = @number1 + @number2
end

Then('the result should be {int}') do |int|
expect(@result).to eq(int)
end