Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cucumber/cucumber-ruby-wire
Wire protocol plugin for Cucumber
https://github.com/cucumber/cucumber-ruby-wire
polyglot-release tidelift
Last synced: about 1 month ago
JSON representation
Wire protocol plugin for Cucumber
- Host: GitHub
- URL: https://github.com/cucumber/cucumber-ruby-wire
- Owner: cucumber
- License: mit
- Created: 2015-07-08T22:23:05.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-03-26T14:36:30.000Z (8 months ago)
- Last Synced: 2024-04-13T21:55:15.625Z (7 months ago)
- Topics: polyglot-release, tidelift
- Language: Gherkin
- Homepage:
- Size: 202 KB
- Stars: 7
- Watchers: 99
- Forks: 10
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[![Test cucumber-wire](https://github.com/cucumber/cucumber-ruby-wire/actions/workflows/cucumber-ruby-wire.yml/badge.svg)](https://github.com/cucumber/cucumber-ruby-wire/actions/workflows/cucumber-ruby-wire.yml)
# cucumber-wire
This gem was extracted from the [cucumber gem](https://github.com/cucumber/cucumber-ruby), 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:
```yaml
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:
```yaml,erb
host: localhost
port: 54321
timeout:
connect: <%= (ENV['MY_CONNECT_TIMEOUT'] || 11).to_i %>
invoke: 120
begin_scenario: 120
end_scenario: 120
```