Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gongo/turnip_formatter
A pretty formatter for Turnip
https://github.com/gongo/turnip_formatter
rspec-formatter turnip
Last synced: about 4 hours ago
JSON representation
A pretty formatter for Turnip
- Host: GitHub
- URL: https://github.com/gongo/turnip_formatter
- Owner: gongo
- License: mit
- Created: 2013-04-15T16:18:46.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-09-06T15:56:14.000Z (about 1 year ago)
- Last Synced: 2024-10-31T13:59:15.184Z (8 days ago)
- Topics: rspec-formatter, turnip
- Language: Ruby
- Homepage: http://gongo.hatenablog.com/entry/2013/04/18/203426
- Size: 1.92 MB
- Stars: 34
- Watchers: 7
- Forks: 24
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
RSpec::Core::Formatters::TurnipFormatter
========================================TurnipFormatter is a pretty custom formatter for [Turnip](https://github.com/jnicklas/turnip).
![CI status](https://github.com/gongo/turnip_formatter/actions/workflows/main.yml/badge.svg?branch=master)
[![Coverage Status](https://coveralls.io/repos/gongo/turnip_formatter/badge.png?branch=master)](https://coveralls.io/r/gongo/turnip_formatter)
[![Code Climate](https://codeclimate.com/github/gongo/turnip_formatter.png)](https://codeclimate.com/github/gongo/turnip_formatter)Requirements
--------------------* Ruby
* `2.2.0` or laterInstallation
--------------------### RubyGems
$ gem install turnip_formatter
### Bundler
Add this line to your application's Gemfile:
```ruby
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:
- Feature and Steps
- https://github.com/gongo/turnip_formatter/tree/master/example
- Report
- http://gongo.github.io/turnip_formatter/examples/report.htmlConfiguration
--------------------```ruby
TurnipFormatter.configure do |config|
config.title = 'My Report' #My Report
config.add_stylesheet File.dirname(__FILE__) + '/foo.css' # ..
config.add_javascript File.dirname(__FILE__) + '/bar.js' # ..config.add_stylesheet 'http://cdn.example.com/hoge.css' #
config.add_javascript '//cdn.example.com/fuga.js' #
end
```Add-on
--------------------* Gnawrnip
* Gnawrnip is a TurnipFormatter Add-on that provides put a screen shot to report use Capybara
* https://github.com/gongo/gnawrnipLicense
--------------------see LICENSE.txt