GithubHelp home page GithubHelp logo

kintull / rspec-github-actions-summary Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sebyx07/rspec-github-actions-summary

0.0 0.0 0.0 30 KB

RSpec formatter for Github Actions Summary

Home Page: https://rubygems.org/gems/rspec-github-actions-summary

License: MIT License

Shell 1.14% Ruby 98.86%

rspec-github-actions-summary's Introduction

RSpec Github Actions Summary

Github Actions Summary for RSpec, works with or without rails. Compatible with parallel_tests gem.

Sample

Test results

Test Result Passed โœ… Failed โŒ Skipped ๐Ÿ”ƒ Total Time duration โฐ
โŒ Failed 2 1 1 4 10 seconds

Failed specs

bin/rspec spec/failed_spec.rb # Example description

Job run summary generated at run-time by RSpec Github Actions Summary

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add rspec-github-actions-summary --group 'test'

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install rspec-github-actions-summary

Usage

# inside your spec_helper.rb, not necessary for rails
require 'rspec_github_actions_summary'
# inside your .rspec
--format RspecGithubActionsSummary
# inside .github/workflows/your-workflow.yml
- name: RSpec
  run: bundle exec rspec

# generate summary even if specs fail
- name: Generate summary
  if: always()
  run: bundle exec rspec-gh-summary >> $GITHUB_STEP_SUMMARY

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec 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. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rspec_github_actions_summary. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

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

Code of Conduct

Everyone interacting in the RspecGithubActionsSummary project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

rspec-github-actions-summary's People

Contributors

sebyx07 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.