https://github.com/rukomoynikov/cucumber-reports
Quickly overview of all your BDD steps in a Ruby application
https://github.com/rukomoynikov/cucumber-reports
cucumber ruby
Last synced: 3 months ago
JSON representation
Quickly overview of all your BDD steps in a Ruby application
- Host: GitHub
- URL: https://github.com/rukomoynikov/cucumber-reports
- Owner: Rukomoynikov
- Created: 2021-09-04T17:12:50.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-09T20:08:26.000Z (over 3 years ago)
- Last Synced: 2024-12-06T19:23:22.636Z (7 months ago)
- Topics: cucumber, ruby
- Language: HTML
- Homepage:
- Size: 1.52 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README

# Cucumber reports
Test automation engineers use BDD and Gherkin. We write features using narutal language. Example of a scenario
```gherkin
Feature: Site title
Background:
Given I am logged in
Scenario: Set the site title and site title link
When I am on the dashboard
And I should see the site title "My Great Site"
```Each scenario consists from the steps. Behind the hood each step is the ruby function or as we call them step definitions. Example of a step from scenario above:
```ruby
Then /^I should see the site title "([^"]*)"$/ do |title|
expect(page).to have_css "h1#site_title", text: title
end
```Goal of this gem is providing general view to step definitions in ruby projects. Using this tool you can create an independent HTML file with all step definitions from the project.
[Example of a generated HTML file](https://rukomoynikov.github.io/cucumber-reports/pages/dist/activeadmin.html)
### Roadmap:
- [x] Building packed HTML file
- [ ] Searching
- [ ] Localization support
- [ ] Support for feature files
- [ ] History of changes### Using
Install gem:
```sh
gem install cucumber-reports
```Launch gem:
```sh
cucumber-reports generate --path dir_with_steps
```Open generated page:
```sh
open index.html
```