https://github.com/allure-framework/allure-ruby
Allure integrations for Ruby test frameworks
https://github.com/allure-framework/allure-ruby
allure cucumber reporting reporting-engine rspec
Last synced: 5 days ago
JSON representation
Allure integrations for Ruby test frameworks
- Host: GitHub
- URL: https://github.com/allure-framework/allure-ruby
- Owner: allure-framework
- License: apache-2.0
- Created: 2019-05-20T15:38:45.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-05-06T07:28:27.000Z (14 days ago)
- Last Synced: 2025-05-08T05:29:00.528Z (12 days ago)
- Topics: allure, cucumber, reporting, reporting-engine, rspec
- Language: Ruby
- Homepage:
- Size: 854 KB
- Stars: 59
- Watchers: 11
- Forks: 23
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Allure ruby
[](https://rubygems.org/gems/allure-ruby-commons)
[](https://rubygems.org/gems/allure-ruby-commons)

[](https://codeclimate.com/github/allure-framework/allure-ruby/maintainability)
[](https://codeclimate.com/github/allure-framework/allure-ruby/test_coverage)
[](https://rubydoc.info/github/allure-framework/allure-ruby/master)
[](https://storage.googleapis.com/allure-test-reports/allure-ruby/refs/heads/master/index.html)Ruby testing framework adaptors for generating allure compatible test reports.
## Supported frameworks
### allure-cucumber
[](https://rubygems.org/gems/allure-cucumber)
[](https://rubygems.org/gems/allure-cucumber)```ruby
gem "allure-cucumber"
```Implementation of allure adaptor for [Cucumber](https://github.com/cucumber/cucumber-ruby) testing framework
Detailed usage and setup instruction can be found in [allure-cucumber docs](allure-cucumber/README.md)
### allure-rspec
[](https://rubygems.org/gems/allure-rspec)
[](https://rubygems.org/gems/allure-rspec)```ruby
gem "allure-rspec"
```Implementation of allure adaptor for [RSpec](https://github.com/rspec/rspec) testing framework
Detailed usage and setup instruction can be found in [allure-rspec docs](allure-rspec/README.md)
## Development
### allure-ruby-commons
[](https://rubygems.org/gems/allure-ruby-commons)
```ruby
gem "allure-ruby-commons"
```Common allure lifecycle interface to be used by other testing frameworks to generate allure reports
Interaction and usage of allure lifecycle is described in [allure-ruby-commons docs](allure-ruby-commons/README.md)
### Contributing
- Install dependencies:
```console
$ bundle install
Bundle complete! ...
```- Make changes
- Run linter:
```console
$ bundle exec rake rubocop
Executing rubocop for allure-cucumber
...
no offenses detectedExecuting rubocop for allure-rspec
...
no offenses detectedExecuting rubocop for allure-ruby-commons
...
no offenses detected
```- Run tests:
```console
$ bundle exec rake test
Executing test for allure-cucumber
...
0 failuresExecuting test for allure-rspec
...
0 failuresExecuting test for allure-ruby-commons
...
0 failures
```- Submit a PR
### Releasing
New version can be created by triggering manual `Release` workflow
## Generating HTML report
Ruby binding hosted in this repository only generate source json files for the [allure2](https://github.com/allure-framework/allure2) reporter.
See [documentation](https://allurereport.org/) on how to use allure report.
### Using with CI providers
[allure-report-publisher](https://github.com/andrcuns/allure-report-publisher) provides a docker image which can be run from github-actions
workflow or gitlab-ci pipeline and host reports using cloud providers like AWS or GCP.