Psp
Command line utility for project and plugins spec running.
Features
- Fair parallelism: all specs running in real processes
- KISS: all you should know is what you want to test
- PP: pretty console output
- This tool is made with love
❤️
Installation
Add this line to your application's Gemfile
:
gem 'psp'
And then execute:
$ bundle
Or install it yourself as:
$ gem install psp
Ensure that your test
section in database.yml
looks like this:
test:
adapter: postgresql
database: db_name_test<%= ENV['TEST_DATABASE_POSTFIX'] %>
username: db_user
host: localhost
port: 5432
pool: 10
Increase the pools size up to 10
and add <%= ENV['TEST_DATABASE_POSTFIX'] %>
to your database name
Usage
From root of your project
$ psp -h
$ Parallel specs
$ Usage: psp [options]
$ -p, --project Run all project specs
$ -g, --plugins Run all plugins specs
$ -l, --plugin=<plugin1,...> Run specified plugins specs
$ -j, --jobs=<concurrency> Set runner concurrency
$ --dry-run Check out the allocations
$ -v, --verbose Turn on verbosity
$ --version Display the version
$ -h, --help You are looking at it
Contributing
- Fork it ( https://github.com/abak-press/psp/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request