Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/janlelis/clipboard_formatter

A clipboard formatter for RSpec
https://github.com/janlelis/clipboard_formatter

clipboard rspec rspec-formatter ruby

Last synced: 6 days ago
JSON representation

A clipboard formatter for RSpec

Awesome Lists containing this project

README

        

# RSpec Clipboard Formatter [![[version]](https://badge.fury.io/rb/clipboard_formatter.svg)](https://badge.fury.io/rb/clipboard_formatter)

Copies the command to run all failed examples to your clipboard.

## Setup

Add the gem to your `Gemfile`:

```ruby
gem 'clipboard_formatter'
```

Add the formatter to your rspec options, e.g. in a `.rspec` file. You probably want to set it as an additional one, instead of the only one:

```
--format documentation
--require clipboard_formatter --format ClipboardFormatter
```

## Usage

Run your RSpec suite, but let some tests fail. Then use your clipboard.

## MIT License

Copyright (C) 2015 Jan Lelis . Released under the MIT license.