Recipe 15Implement a Wire Protocol Listener

Problem

You want to test software running in an environment that doesn’t have explicit Cucumber support, such as an embedded system.

Ingredients

  • Cucumber’s wire protocol,[92] which specifies how Cucumber can drive software tests over a network

Solution

The Cucumber project supports many programming languages—such as Ruby, Java, and JavaScript—directly. There are no special steps needed to get Cucumber to drive test code written in these languages. Without this support, you’d need to implement your own communication path between Cucumber and your software.

That’s exactly what the wire protocol does. When you start a Cucumber test using the wire protocol, Cucumber connects to your app over TCP and ...

Get Cucumber Recipes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.