Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rspec_html_formatter2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rspec_html_formatter2

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

RSpec HTML Formatter2

Publish pretty rspec reports

This is a ruby RSpec custom formatter which generates pretty html reports showing the results of rspec tests. It has features to embed images and videos into report providing better debugging information in case test is failed. Check this Sample Report.

Setup

Add this in your Gemfile:

gem 'rspec_html_formatter2', git: 'https://github.com/vbanthia/rspec_html_formatter2'

Note: Will publish it soon.

Running

Either add below in your .rspec file

--format RspecHtmlFormatter

or run RSpec with --format RspecHtmlFormatter like below:

REPORT_PATH=reports/$(date +%s) bundle exec rspec --format RspecHtmlFormatter spec

Above will create reports in reports directory.

Usage

Images and videos can be embed by adding their path into example's metadata. Check this Sample Test.

Credits

This library is forked from kingsleyh/rspec_reports_formatter. Original Credits goes to kingsleyh

FAQs

Package last updated on 25 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc