File: Readme.md

package info (click to toggle)
ruby-rspec-instafail 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 144 kB
  • ctags: 18
  • sloc: ruby: 238; makefile: 2
file content (61 lines) | stat: -rwxr-xr-x 1,964 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# rspec-instafail
[![Gem Version](https://badge.fury.io/rb/rspec-instafail.svg)](https://rubygems.org/gems/rspec-instafail)
[![Build Status](https://travis-ci.org/grosser/rspec-instafail.svg)](https://travis-ci.org/grosser/rspec-instafail)

Show failing specs instantly. Show passing spec as green dots as usual.

Output
======

```
....................................................*....
1) ApplicationController#sign_out_and_redirect with JSON should return JSON indicating success
   Failure/Error: json_response = JSON.parse response.body
   A JSON text must at least contain two octets!
   # /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `initialize'
   # /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `new'
   # /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `parse'
   # ./spec/controllers/application_controller_spec.rb:17:in `block (4 levels) in <top (required)>'
..................................................................

Finished in 650.095614 seconds

1680 examples, 1 failure, 1 pending
```



Install
=======

```Bash
gem install rspec-instafail

# .rspec
--require rspec/instafail
--format RSpec::Instafail
--format progress # to keep dots appear
```

Alternatives
============

Use built-in `--fail-fast`

Authors
=======

### [Contributors](http://github.com/grosser/rspec-instafail/contributors)
 - [Matthew Willhite](http://github.com/miwillhite)
 - [Jeff Kreeftmeijer](http://jeffkreeftmeijer.com)
 - [Steve Tooke](http://tooky.github.com)
 - [Josh Ellithorpe](https://github.com/zquestz)
 - [Raphael Sofaer](https://github.com/rsofaer)
 - [Mike Mazur](https://github.com/mikem)
 - [vernonR2](https://github.com/vernonR2)
 - [Olek Janiszewski](https://github.com/exviva)
 - [Kevin Carter](https://github.com/DexterTheDragon)

[Michael Grosser](http://grosser.it)<br/>
michael@grosser.it<br/>
License: MIT