0.05
Low commit activity in last 3 years
No release in over a year
RSpec custom formatter for Turnip
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 4.2.7, < 8.0
>= 3.3, < 4.0
~> 4.1
 Project Readme

RSpec::Core::Formatters::TurnipFormatter

TurnipFormatter is a pretty custom formatter for Turnip.

CI status Coverage Status Code Climate

Requirements

  • Ruby
    • 2.2.0 or later

Installation

RubyGems

$ gem install turnip_formatter

Bundler

Add this line to your application's Gemfile:

group :test do
  gem 'turnip_formatter'
end

And then execute:

$ bundle install

Usage

Run this command.

$ rspec -r turnip_formatter --format RSpecTurnipFormatter --out report.html

Example

See:

Configuration

TurnipFormatter.configure do |config|
  config.title = 'My Report'                                 # <h1>My Report</h1>
  config.add_stylesheet File.dirname(__FILE__) + '/foo.css'  # <style>..</style>
  config.add_javascript File.dirname(__FILE__) + '/bar.js'   # <script>..</script>

  config.add_stylesheet 'http://cdn.example.com/hoge.css'    # <link rel="..">
  config.add_javascript '//cdn.example.com/fuga.js'          # <script src="..">
end

Add-on

License

see LICENSE.txt