Gandalf StormCrow
Gandalf StormCrow

Reputation: 26212

Rspec tests output

How can I run rspect test (I'm using rspec 2 btw).

So that the console only outputs the dots instead of full test log, I've seen it before where green dots are passed tests and the red ones are the failed ones, along with the test outputs the red ones only at the end of test

Upvotes: 1

Views: 1251

Answers (2)

Maxim
Maxim

Reputation: 9981

Use -f option to enable documentation format:

rspec -f d spec/

and -b option to enable full backtrace:

rspec -b spec/

Upvotes: 1

Thomas
Thomas

Reputation: 622

Edit your .rspec file from (in you main folder)

--format documentation

to

--format progress

Upvotes: 1

Related Questions