Skip to content

cucumber/cucumber-ruby-wire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f5879f3 · Mar 26, 2024
Nov 10, 2023
Dec 22, 2023
Dec 22, 2023
Dec 22, 2023
Nov 9, 2023
Jul 9, 2015
Nov 15, 2023
Dec 22, 2023
Dec 22, 2023
Nov 9, 2023
Oct 12, 2021
Dec 22, 2023
Mar 26, 2024
Aug 19, 2020
Jan 5, 2023
Nov 9, 2023
Dec 22, 2023
Aug 27, 2021
Nov 10, 2023
Dec 22, 2023
Nov 9, 2023
Dec 22, 2022

Repository files navigation

Test cucumber-wire

cucumber-wire

This gem was extracted from the cucumber gem, and remains a runtime dependency to that gem.

Its tests are a bit hairy and prone to the occasional flicker.

In the future, it may become an opt-in plugin rather than a direct dependency on every Cucumber.

Configuration

You can configure the connection using a YAML file called a .wire file:

host: localhost
port: 54321
timeout:
  connect: 11
  invoke: 120
  begin_scenario: 120
  end_scenario: 120

Timeouts

The default timeout is 120 seconds. connect has a default timeout of 11 seconds.

YAML with ERB templating

The file format is YAML, with ERB templating, so you could make the configuration configurable:

host: localhost
port: 54321
timeout:
  connect: <%= (ENV['MY_CONNECT_TIMEOUT'] || 11).to_i %>
  invoke: 120
  begin_scenario: 120
  end_scenario: 120