No commit activity in last 3 years
No release in over 3 years
Injects additional configuration for Cucumber so that it outputs JSON suitable for auto-parallelism without affecting stdout.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0
>= 0

Runtime

~> 0.19.1
 Project Readme

Cucumber Booster Config

Note: This version is just an updated copy of the original with the new version number.

Build Status Gem Version

Injects additional configuration for Cucumber so that it outputs JSON report suitable for estimation of the split configuration for the next build.

Cucumber Booster Config is primarily used as Test Boosters gem dependency. Boosters help you with distribution of your test files across many parallel jobs and optimize your build time. Find out more about Boosters.

Installation

Add this line to your application's Gemfile:

gem "semaphore_cucumber_booster_config"

Usage from the CLI

$ cucumber-booster-config help inject
Usage:
  cucumber-booster-config inject PATH

  Options:
    [--dry-run], [--no-dry-run]

inject Semaphore's Cucumber configuration in project PATH

If you use the --dry-run option, output will look like this:

$ cucumber-booster-config inject . --dry-run
Running in .
Found Cucumber profile file: ./cucumber.yml
Content before:
---
default: --format pretty features
---
Inserting Semaphore configuration at the top
Appending Semaphore profile to default profile
Content after:
---
semaphoreci: --format json --out=features_report.json
default: --format pretty features --profile semaphoreci
---

Usage from other scripts

You can invoke the injector script programaticaly too:

current_path = Dir.pwd
output_report_path = "/tmp/cucumber_report.json"

CucumberBoosterConfig::Injection.new(current_path, output_report_path).run

This is how Test Boosters gem is using it to configure Cucumber.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bundle exec rspec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install.

How to release a new version

Bump version number in lib/cucumber_booster_config/version.rb, commit and push your changes.

Semaphore is currently configured to push new versions to Rubygems. If version hasn't changed, Rubygems will simply ignore the update.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/renderedtext/cucumber_booster_config.

License

The gem is available as open source under the terms of the MIT license.