Chandresh Pant
Chandresh Pant

Reputation: 1183

Rspec output format

This question is more out of curiosity than purpose. Can we change the output of Rspec command, where it shows dots and Fs. For example, here is an output from one of my projects:

.F.F.F.F

.....
........
Finished in 0.27137 seconds
8 examples, 4 failures

Can we get Pass Failed Pass Failed Pass Failed Pass Failed instead of .F.F.F.F

Upvotes: 1

Views: 771

Answers (2)

muffinista
muffinista

Reputation: 6736

You indeed can, check out the rspec wiki or google 'rspec progressformatter' -- here's one that does something very close to what you want.

Upvotes: 1

Michael Durrant
Michael Durrant

Reputation: 96584

Color might help a bit - add the alias spec=spec --color --format specdoc to your ~/.bashrc file.

Upvotes: 1

Related Questions