0.0
The project is in a healthy, maintained state
This is a Gem that makes the display while running RSpec look like Pacman.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.0
 Project Readme

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.