If you have large test suit which takes tens of minutes or a couple hours to complete then it would have been difficult to check the progress status of the test suit with default RSpec configuration.

By default, RSpec uses the progress formatter, which generates output like this:

output1

This formatting doesn’t give you much idea about how much of the test suit is remaining to complete.

Fuubar gems provide RSpec formatter that shows a progress bar with percent completed instead of a string of letters and dots as feedback.

output

How to configure in a Rails application?

Add gem to the gem file under test group.

gem 'fuubar'

Set fuubar as formatter to .rspec file

--format Fuubar
--color

Click here for more details…


At BoTree Technologies, we build enterprise applications with our RoR team of 25+ engineers.

We also specialize in RPA, AI, Python, Django, JavaScript and ReactJS.

Consulting is free – let us help you grow!