Skip to content

Conversation

@luke-hill
Copy link
Contributor

@luke-hill luke-hill commented Sep 5, 2025

Description

Initial pass at implementing the "correct" style of cucumber query inline with Java/JS implementations

Type of change

Please delete options that are not relevant.

  • Refactoring (improvements to code design or tooling that don't change behaviour)
  • New feature (non-breaking change which adds new behaviour)
  • Breaking change (will cause existing functionality to not
    work as expected)

Please add an entry to the relevant section of CHANGELOG.md as part of this pull request.

Checklist:

Your PR is ready for review once the following checklist is
complete. You can also add some checks if you want to.

  • Tests have been added for any changes to behaviour of the code
  • New and existing tests are passing locally and on CI
  • bundle exec rubocop reports no offenses
  • RDoc comments have been updated
  • CHANGELOG.md has been updated

…grated with our repository and (in 2 instances, fully), functional
…mpty) that validate find all pickles returns the correct number.

Next step is to extend this to test 3/4/5 files for JUST find all pickles
@luke-hill luke-hill changed the title Feature/new query feature: Implement Cucumber::Query in-line with Java/JS implementations Nov 25, 2025
def update_test_step_finished(test_step_finished)
# Java impl:
# this.testStepsFinishedByTestCaseStartedId.compute(event.getTestCaseStartedId(), updateList(event));
test_steps_finished_by_test_case_started_id[test_step_finished.test_case_started_id] = test_step_finished
Copy link
Contributor

Choose a reason for hiding this comment

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

The relationship here is a one to many relationship test_case_started_id (1) --> (*) test_step_finished.

So the data structure should look like

{
  "Id1" => [ object1, object2, ... ],
  "id2" =>  [ object10, object11, ... ],
}

…key by default as an array - allowing enumeration
…ir of update calls

Add update_scenario which is a simple wrapper around updating steps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants