# Cucumber

Cucumber is a tool that supports behavior-driven development by reading plain-text executable specifications and validating software behavior.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Use executable specs to verify AI-generated implementations

DevFeed: [Use executable specs to verify AI-generated implementations](<https://devfeed.tech/articles/spec-driven-development-has-a-markdown-problem-85251.md>)

Original publisher: [Read original article](<https://journal.optivem.com/p/spec-driven-development-has-a-markdown-problem>)

Author: Valentina Jemuović

Published: 2026-10-12T06:02:03Z

Content type: opinion

Language: en

Sources: [Optivem Journal](<https://devfeed.tech/sources/optivem-journal.md>)

Topics: [Spec Driven Development](<https://devfeed.tech/topics/spec-driven-development.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Cucumber](<https://devfeed.tech/topics/cucumber.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [code](<https://devfeed.tech/tags/code.md>), [spec-driven-development](<https://devfeed.tech/tags/spec-driven-development.md>), [tdd](<https://devfeed.tech/tags/tdd.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

The article argues that Markdown specifications alone do not reliably ensure AI-generated code follows requirements. It recommends converting textual specs into executable acceptance tests that automatically pass or fail, helping teams detect omissions or misinterpretations.

### Source excerpt

Stop manually checking whether AI implemented your spec correctly

## Provided, Otherwise: The Missing Guard in Gherkin

DevFeed: [Provided, Otherwise: The Missing Guard in Gherkin](<https://devfeed.tech/articles/provided-otherwise-the-missing-guard-in-gherkin-83987.md>)

Original publisher: [Read original article](<https://blog.devops.dev/provided-otherwise-the-missing-guard-in-gherkin-af562aeaec7a?source=rss----33f8b2d9a328---4>)

Author: Bruno Baketarić

Published: 2026-10-09T10:11:43Z

Content type: opinion

Language: en

Sources: [DevOps.dev](<https://devfeed.tech/sources/devops-dev.md>)

Topics: [Spec Driven Development](<https://devfeed.tech/topics/spec-driven-development.md>), [Cucumber](<https://devfeed.tech/topics/cucumber.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [acceptance](<https://devfeed.tech/tags/acceptance.md>), [account](<https://devfeed.tech/tags/account.md>), [account-balance](<https://devfeed.tech/tags/account-balance.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [also](<https://devfeed.tech/tags/also.md>), [atm](<https://devfeed.tech/tags/atm.md>), [bdd](<https://devfeed.tech/tags/bdd.md>), [behaviour](<https://devfeed.tech/tags/behaviour.md>), [bug](<https://devfeed.tech/tags/bug.md>), [business](<https://devfeed.tech/tags/business.md>), [but](<https://devfeed.tech/tags/but.md>), [can](<https://devfeed.tech/tags/can.md>), [card](<https://devfeed.tech/tags/card.md>), [code](<https://devfeed.tech/tags/code.md>), [decades](<https://devfeed.tech/tags/decades.md>), [developer](<https://devfeed.tech/tags/developer.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [software-testing](<https://devfeed.tech/tags/software-testing.md>), [test-automation](<https://devfeed.tech/tags/test-automation.md>)

### AI overview

The essay argues that Gherkin has no explicit place for a guard: a condition relating prior state to an event's parameters. It proposes "Provided" for that condition and mandatory "Otherwise" for the alternative outcome, alongside rules that Given must not depend on the event and Provided must refer to it. Examples on both sides of a guard, relational outcomes, frame conditions, and a glossary of owner-defined terms make requirements more explicit and support example-based, property-based, and frame tests. Agents should ask owners to resolve domain questions rather than guess. Independent test and coding agents can reduce shared misreadings, though validation remains relative to the specification; the format cannot establish that requirements are correct or useful.

### Source excerpt

If AI agents write the code, the work that remains sits at the two ends of the pipeline: saying what should be built, and checking that it was. The industry has noticed. Spec-driven development tools promise that a well-written specification, given enough tokens, turns into working software.¹ The claim is plausible. It also moves the burden somewhere that was never built to carry it. For decades, code was where ambiguity surfaced. A developer reading a vague requirement had to decide what it meant, and the decision showed up in a pull request, a question in a stand-up, a bug report. When an agent writes the code, that friction disappears. The agent decides silently, and its decision looks exactly like the intended one. obviously created by AI So the specification has to carry more than it used to. It has to be precise enough that an agent cannot misread it, and structured enough that a second agent can derive tests from it that check something. The most common format for business-readable acceptance criteria, Gherkin, has a structural gap that matters precisely here. This essay describes that gap, proposes a small extension that closes most of it, and shows how agents can help on both sides: writing the specification and using it. One word in a familiar scenario The cash machine is the textbook example of behaviour-driven development. It goes back to Dan North's Introducing BDD,² and versions of it appear in countless tutorials. A typical one reads: Scenario: Account has sufficient funds Given the account balance is $100 And the card is valid And the machine contains enough money When the Account Holder requests $20 Then the ATM should dispense $20 And the account balance should be $80 And the card should be returned It reads well. Most reviewers would accept it. But one line is not like the others. "The account balance is $100" describes the world before anything happens. "The machine contains enough money" does not. Enough for what? For the $20 that only appears i

## Cypress Ambassador Spotlight: Javier Flores

DevFeed: [Cypress Ambassador Spotlight: Javier Flores](<https://devfeed.tech/articles/cypress-ambassador-spotlight-javier-flores-12604.md>)

Original publisher: [Read original article](<https://www.cypress.io/blog/cypress-ambassador-spotlight-javier-flores/>)

Published: 2026-07-16T21:08:08Z

Content type: opinion

Language: en

Sources: [Cypress Blog](<https://devfeed.tech/sources/cypress-blog.md>)

Topics: [Cypress](<https://devfeed.tech/topics/cypress.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Cucumber](<https://devfeed.tech/topics/cucumber.md>), [Bootcamp](<https://devfeed.tech/topics/bootcamp.md>), [selectors](<https://devfeed.tech/topics/selectors.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [Automation](<https://devfeed.tech/topics/automation.md>)

Tags: [ambassador](<https://devfeed.tech/tags/ambassador.md>), [automation](<https://devfeed.tech/tags/automation.md>), [community](<https://devfeed.tech/tags/community.md>), [cypress](<https://devfeed.tech/tags/cypress.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [flaky](<https://devfeed.tech/tags/flaky.md>), [learning](<https://devfeed.tech/tags/learning.md>), [projects](<https://devfeed.tech/tags/projects.md>), [selectors](<https://devfeed.tech/tags/selectors.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

This interview highlights Javier Flores's work as a Cypress Ambassador, QA Automation Lead, mentor, and bootcamp instructor. It discusses practical Cypress testing, Cucumber exercises, interactive time-travel debugging, automatic waiting, deterministic tests, stable selectors, and beginner-friendly end-to-end testing practices.

### Source excerpt

What motivates you to be a Cypress Ambassador? I want to help grow a strong, practical testing community around Cypress. I show people working code and let them build confidence by doing. That's the same philosophy behind the bootcamp I run: everyone leaves with their own repo, not just notes. How do you currently help others that are either using Cypress or interested in using Cypress? I mentor teammates and collaborate closely with developers and product owners to improve testing practices

## How we improved reporting and monitoring of test automation results

DevFeed: [How we improved reporting and monitoring of test automation results](<https://devfeed.tech/articles/how-we-improved-reporting-and-monitoring-of-test-automation-results-28033.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/2023-02-15-how-we-improved-reporting-and-monitoring-of-test-automation-results/>)

Author: Giuseppe Donati Web Test Automation Engineer Not a stereotypical Italian guy; Except

Published: 2023-02-15T00:00:00Z

Content type: article

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [Selenium](<https://devfeed.tech/topics/selenium.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [Apache Kafka](<https://devfeed.tech/topics/apache-kafka.md>), [elasticsearch](<https://devfeed.tech/topics/elasticsearch.md>), [kibana](<https://devfeed.tech/topics/kibana.md>), [logstash](<https://devfeed.tech/topics/logstash.md>), [Grafana](<https://devfeed.tech/topics/grafana.md>), [Cucumber](<https://devfeed.tech/topics/cucumber.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [elasticsearch](<https://devfeed.tech/tags/elasticsearch.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [gcp](<https://devfeed.tech/tags/gcp.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [grafana](<https://devfeed.tech/tags/grafana.md>), [kafka](<https://devfeed.tech/tags/kafka.md>), [kibana](<https://devfeed.tech/tags/kibana.md>), [logstash](<https://devfeed.tech/tags/logstash.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [quality-assurance](<https://devfeed.tech/tags/quality-assurance.md>), [selenium](<https://devfeed.tech/tags/selenium.md>), [test-automation](<https://devfeed.tech/tags/test-automation.md>)

### AI overview

The article describes trivago's updated system for executing, reporting, and monitoring Selenium-based end-to-end tests. It covers GitHub Actions workflows, custom runners on Google Cloud, cloud report storage, Kafka and Logstash processing, Elasticsearch and Kibana visualization, and Grafana and Slack alerting.

### Source excerpt

Over the last few years, we completely refactored what was described in our previous article about how we use the ELK sta...

## Leveraging Kotlin for Tests

DevFeed: [Leveraging Kotlin for Tests](<https://devfeed.tech/articles/leveraging-kotlin-for-tests-25968.md>)

Original publisher: [Read original article](<https://jossiwolf.medium.com/leveraging-kotlin-for-tests-311bfd8335ee?source=rss-8efc0359e234------2>)

Author: Jossi Wolf

Published: 2021-12-01T15:00:03Z

Content type: tutorial

Language: en

Sources: [Jossi Wolf](<https://devfeed.tech/sources/stories-by-jossi-wolf-on-medium.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>), [Cucumber](<https://devfeed.tech/topics/cucumber.md>), [software-development](<https://devfeed.tech/topics/software-development.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [bdd](<https://devfeed.tech/tags/bdd.md>), [given-when-then](<https://devfeed.tech/tags/given-when-then.md>), [junit](<https://devfeed.tech/tags/junit.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

This article explains how Kotlin language features and naming patterns can improve test readability. It covers the Given/When/Then pattern, meaningful test names, and using Kotlin backtick function names to make tests clearer.

### Source excerpt

Writing tests can be an important part of developing applications. Whether unit tests, integration tests or others, Kotlin's language features and clever naming patterns can help us increase the readability of tests. The patterns suggested here aren't new or innovative; rather they are more modern adaptions of well-established practices. I learned about these adaptions from my lovely colleague Volodymyr Galandzij who did fantastic work in setting up the testing framework in a codebase we worked on together. Given/When/Then You may have heard of the Given/When/Then pattern -- also known as the Cucumber/Gherkin syntax -- if you have written tests before, or you might even recognize it from Jira tickets. Originally introduced as a part of BDD (Behavior Driven Development), similar patterns like the Four-Phase Test (you'll see some similarities to JUnit here) have existed for a good amount of time. Martin Fowler gives a good small summary of all of this in his article about the Given/When/Then pattern: The essential idea is to break down writing a scenario (or test) into three sections:The given part describes the state of the world before you begin the behavior you're specifying in this scenario. You can think of it as the pre-conditions to the test.The when section is that behavior that you're specifying.Finally the then section describes the changes you expect due to the specified behavior. Regardless of the testing philosophy you follow, there's a good chance that the Given/When/Then pattern can be applied to your tests. But how does this look in practice? I heard that adding a featured image helps increase clicks. Does it work? Who knows! If it does, thank you, Sigmund on Unsplash!Test Names I argue that test names are one of the most important parts of writing good tests. The name of the test should help you understand what the test does. One quality of a good test is that it fails when the actual outcome is different from the expected outcome. When a test fails, it

## Acceptance Criteria: From Informal Text to Formal Specifications

DevFeed: [Acceptance Criteria: From Informal Text to Formal Specifications](<https://devfeed.tech/articles/acceptance-criteria-bureaucracy-29350.md>)

Original publisher: [Read original article](<https://arturdryomov.dev/posts/acceptance-criteria-bureaucracy/>)

Author: Artur Dryomov

Published: 2019-01-20T00:00:00Z

Content type: opinion

Language: en

Sources: [Artur Dryomov](<https://devfeed.tech/sources/artur-dryomov.md>)

Topics: [Agile](<https://devfeed.tech/topics/agile.md>), [Requirements](<https://devfeed.tech/topics/requirements.md>), [Cucumber](<https://devfeed.tech/topics/cucumber.md>), [Specifications](<https://devfeed.tech/topics/specifications.md>)

Tags: [agile](<https://devfeed.tech/tags/agile.md>), [communication](<https://devfeed.tech/tags/communication.md>), [requirements](<https://devfeed.tech/tags/requirements.md>), [specifications](<https://devfeed.tech/tags/specifications.md>)

### AI overview

The article discusses Acceptance Criteria as a communication artifact between business and technical teams. It traces their evolution from informal text and email to formal specifications, highlighting Cucumber's Gherkin syntax as a structured option.

### Source excerpt

Cooperation! It sure sounds better than bureaucracy. A released product is a result of cooperation between the Business and the Tech. There is an obvious issue though. Both sides have different mindsets. The misunderstanding is inevitable. How do we solve this? Well, there are still wars on the planet so apparently humanity wasn't able to find a solution. What about establishing not world peace but a good communication channel? Agile methodologies establish such artifact as Acceptance Criteria (AC). AC is a specification for how the product should work. Sounds good and the motivation is solid, but there is a catch -- there are no explicit requirements. AC can consist of memes and be distributed by birds -- the sky is the limit (literally). Let's take a look at the evolution and trace our path to the bureaucracy nirvana.

## Cluecumber Report Maven Plugin for Cucumber test reporting

DevFeed: [Cluecumber Report Maven Plugin for Cucumber test reporting](<https://devfeed.tech/articles/cluecumber-report-maven-plugin-for-cucumber-test-reporting-28068.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/cluecumber-reporting-plugin/>)

Author: Benjamin Bischoff Test Automation Engineer; Author; Speaker; Magician Github Profile Linkedin Profile

Published: 2017-11-16T00:00:00Z

Content type: article

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [maven-plugin](<https://devfeed.tech/topics/maven-plugin.md>), [Cucumber](<https://devfeed.tech/topics/cucumber.md>), [experience report](<https://devfeed.tech/topics/experience-report.md>)

Tags: [apache](<https://devfeed.tech/tags/apache.md>), [css](<https://devfeed.tech/tags/css.md>), [custom](<https://devfeed.tech/tags/custom.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [html](<https://devfeed.tech/tags/html.md>), [java](<https://devfeed.tech/tags/java.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [json](<https://devfeed.tech/tags/json.md>), [maven](<https://devfeed.tech/tags/maven.md>), [maven-plugin](<https://devfeed.tech/tags/maven-plugin.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [quality-assurance](<https://devfeed.tech/tags/quality-assurance.md>), [report](<https://devfeed.tech/tags/report.md>), [reporting](<https://devfeed.tech/tags/reporting.md>), [test](<https://devfeed.tech/tags/test.md>)

### AI overview

At trivago, Cluecumber was built to make Cucumber end-to-end test results easier to analyze after the existing Maven reporter showed unnecessary statistics, obscured failures, counted intentionally skipped scenarios as failed, and could use substantial memory with large reports and attachments. The plugin reads multiple Cucumber JSON files, removes attachments during deserialization, combines reporting data, copies static assets, and uses FreeMarker templates to generate static HTML. Its suite overview includes passed, failed, and skipped counts, a result diagram, and searchable feature and scenario tables grouped by status. Scenario pages show runtime, tags, step statuses and timings, failure stack traces, and screenshots. The article reports improved analysis in trivago's pipeline; custom templates are mentioned only as a possible future extension.

### Source excerpt

We were not as happy as we could be with out Cucumber test reporting solution - so we decided to build a new and shiny one from scratch.

## Cucable Maven plugin for parallel execution of Cucumber scenarios

DevFeed: [Cucable Maven plugin for parallel execution of Cucumber scenarios](<https://devfeed.tech/articles/cucable-maven-plugin-for-parallel-execution-of-cucumber-scenarios-28071.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/cucable-plugin/>)

Author: Benjamin Bischoff Test Automation Engineer; Author; Speaker; Magician Github Profile Linkedin Profile

Published: 2017-06-30T00:00:00Z

Content type: article

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [maven-plugin](<https://devfeed.tech/topics/maven-plugin.md>), [dynamic test splitting](<https://devfeed.tech/topics/dynamic-test-splitting.md>), [Cucumber](<https://devfeed.tech/topics/cucumber.md>), [Maven](<https://devfeed.tech/topics/maven.md>), [Continuous integration](<https://devfeed.tech/topics/continuous-integration.md>)

Tags: [frontend](<https://devfeed.tech/tags/frontend.md>), [maven](<https://devfeed.tech/tags/maven.md>), [maven-plugin](<https://devfeed.tech/tags/maven-plugin.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [quality-assurance](<https://devfeed.tech/tags/quality-assurance.md>), [split](<https://devfeed.tech/tags/split.md>), [user-experience](<https://devfeed.tech/tags/user-experience.md>)

### AI overview

Cucable splits Cucumber feature files into individual scenario features, expanding each scenario outline example into its own feature, and generates a runner for each from a template. Maven Failsafe can then run the generated tests in parallel using its forkCount option, while Maven Cucumber Reporting aggregates the JSON reports. The authors chose this approach after finding custom runners difficult to build, tag-based suites inflexible, and feature-level runs hard to maintain; they also found existing plugins unsuitable for their needs. They report reducing runtime from more than 45 minutes to about 10, with further gains dependent on Selenium Grid capacity and thread count.

### Source excerpt

Running Cucumber scenarios in parallel can be tricky, especially when a custom test runner is used. That's why we created Cucable - a Maven plugin to split test scenarios into smaller chunks that can be run at the same time.

## Kochiku: CI for long test suites

DevFeed: [Kochiku: CI for long test suites](<https://devfeed.tech/articles/kochiku-ci-for-long-test-suites-15736.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/kochiku-ci-for-long-test-suites>)

Author: Square Engineering

Published: 2013-09-06T16:04:00Z

Content type: release

Language: en

Sources: [Square Corner](<https://devfeed.tech/sources/square-corner-blog-medium.md>)

Topics: [Continuous integration](<https://devfeed.tech/topics/continuous-integration.md>), [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [Ruby](<https://devfeed.tech/topics/ruby.md>), [Ruby on Rails](<https://devfeed.tech/topics/ruby-on-rails.md>), [Cucumber](<https://devfeed.tech/topics/cucumber.md>), [RSpec](<https://devfeed.tech/topics/rspec.md>), [Amazon EC2](<https://devfeed.tech/topics/amazon-ec2.md>), [Selenium](<https://devfeed.tech/topics/selenium.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [ci](<https://devfeed.tech/tags/ci.md>), [continuous-integration](<https://devfeed.tech/tags/continuous-integration.md>), [ec2](<https://devfeed.tech/tags/ec2.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [rails](<https://devfeed.tech/tags/rails.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [selenium](<https://devfeed.tech/tags/selenium.md>), [tests](<https://devfeed.tech/tags/tests.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>)

### AI overview

Square introduces Kochiku, a continuous integration system that partitions long test suites into distributable chunks and runs them through a queue of build workers.

### Source excerpt

A new Continuous Integration tool from Square

## Integration Testing Resque with Cucumber

DevFeed: [Integration Testing Resque with Cucumber](<https://devfeed.tech/articles/integration-testing-resque-with-cucumber-15696.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/integration-testing-resque-with-cucumber>)

Author: Square Engineering

Published: 2010-08-16T16:00:00Z

Content type: tutorial

Language: en

Sources: [Square Corner](<https://devfeed.tech/sources/square-corner-blog-medium.md>)

Topics: [Integration testing](<https://devfeed.tech/topics/integration-testing.md>), [Cucumber](<https://devfeed.tech/topics/cucumber.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [async](<https://devfeed.tech/topics/async.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Process](<https://devfeed.tech/topics/process.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [array](<https://devfeed.tech/tags/array.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [atomic](<https://devfeed.tech/tags/atomic.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [background](<https://devfeed.tech/tags/background.md>), [card](<https://devfeed.tech/tags/card.md>), [chaining](<https://devfeed.tech/tags/chaining.md>), [channel](<https://devfeed.tech/tags/channel.md>), [class](<https://devfeed.tech/tags/class.md>), [code](<https://devfeed.tech/tags/code.md>), [command](<https://devfeed.tech/tags/command.md>), [commands](<https://devfeed.tech/tags/commands.md>), [communication](<https://devfeed.tech/tags/communication.md>), [condition](<https://devfeed.tech/tags/condition.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [integration](<https://devfeed.tech/tags/integration.md>), [integration-testing](<https://devfeed.tech/tags/integration-testing.md>), [jobs](<https://devfeed.tech/tags/jobs.md>), [processing](<https://devfeed.tech/tags/processing.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

The article describes making Resque background jobs deterministic in Cucumber integration tests by starting a worker as a forked child, pausing it on startup, and using a test step to unpause it, process queued jobs, and pause it again before assertions. This preserves the enqueueing and worker path that synchronous RSpec unit tests skip. The authors use fork and exec to capture the worker PID, noting that exec's array form preserves the replaced process's PID while its string form gives that PID to the shell, which led to orphaned workers. They control the worker with USR2 and CONT signals and use a custom counter because Resque's pending and working counters are non-atomic; jobs that enqueue more jobs could otherwise be missed. The approach relies on Resque's signal handling and hooks, and the authors list atomic counters, queue-specific processing, job limits, timeouts, and other features as future improvements.

### Source excerpt

Processing asynchronous jobs deterministically