RspecPacman
This is a Gem that displays the test execution status displayed on the terminal like Pac-Man in RSpec tests.
It supports Ruby or Rails apps.
Installation
Write the following in the test group of the Gemfile
gem 'rspec_pacman'
Or, you can put them in the test group individually.
gem 'rspec_pacman', group: :test
Then execute the following command
bundle install
Usage
For Ruby apps, add the following to spec_helper.rb
require "rspec_pacman" # add
RSpec.configure do |config|
config.formatter = RspecPacman::PacmanFormatter # add
end
For a Rails app, add the following to rails_helper.rb
Some descriptions are omitted.
require "rspec_pacman" # add
RSpec.configure do |config|
config.formatter = RspecPacman::PacmanFormatter # add
end
If you are using another formatter, try writing the following It may display well.
RSpec.configure do |config|
config.formatters.clear # add
config.formatter = RspecPacman::PacmanFormatter
end
After configuration is complete, run Rspec.
bundle exec rspec
It is assumed to be displayed as follows
The results of the test will be displayed as follows
License
This Gem is provided under the MIT License.