# 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 Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [Cucumber](<https://devfeed.tech/topics/cucumber.md>), [Integration testing](<https://devfeed.tech/topics/integration-testing.md>), [race-condition](<https://devfeed.tech/topics/race-condition.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Processes](<https://devfeed.tech/topics/processes.md>), [Concurrent Programming](<https://devfeed.tech/topics/concurrent-programming.md>)

Tags: [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [continuous-integration](<https://devfeed.tech/tags/continuous-integration.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [integration](<https://devfeed.tech/tags/integration.md>), [integration-testing](<https://devfeed.tech/tags/integration-testing.md>), [process](<https://devfeed.tech/tags/process.md>), [processes](<https://devfeed.tech/tags/processes.md>), [queue](<https://devfeed.tech/tags/queue.md>), [race-condition](<https://devfeed.tech/tags/race-condition.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>)

## AI overview

This article explains how Square integration-tests Resque asynchronous background jobs with Cucumber. It addresses race conditions by forking a Resque worker from the Cucumber process, pausing the worker, and using signal handling to release it, wait for queued jobs to finish, and pause it again.

## Source excerpt

Processing asynchronous jobs deterministically