Skip to content

abak-press/psp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Psp

Command line utility for project and plugins spec running.

Features

  1. Fair parallelism: all specs running in real processes
  2. KISS: all you should know is what you want to test
  3. PP: pretty console output
  4. 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

  1. Fork it ( https://github.com/abak-press/psp/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages