Smarter Rspec Runner
Script that runs specs for Spectra Rails projects based off of dependencies and perforce changelists
Gathering Dependents
In the script I utilize the Rubrowser gem to create a dependency graph for the code.
Installation
This gem is publicly available on RubyGems.
gem install specss
If your projects use different Ruby versions, then each one will require this step in order to run.
Use
Navigate to the root of your rails app or ruby project and simply run:
specss
By default, it only runs the 'lite' version that executes specs based on your p4 status. To run specs on all changed files and all dependents of those changed files, run:
specss -e
For other information, print the help after running the executable:
[~]$ specss -h
Usage: specss [option]
-e, --extended Run specs of modified files and dependents
-l, --lite Run specs of modified files only
-v, --version Smarter Specs Version
-h, --help Prints this help