lakeIn231
lakeIn231

Reputation: 1295

Shortcut to run all rails tests?

I have to type

bundle exec rspec spec lib/crucible_kit/spec

every time I want to run all 700 of my rspec tests for my rails application. Is there anyway I could shorten down this to just typing "rr" to run all tests? If so, where would I put this file in my rails application? And would I be able to push it to git branch so my teammates can use it?

Upvotes: 0

Views: 201

Answers (1)

Jones Agyemang
Jones Agyemang

Reputation: 1516

Enter the code below in your command-line.

alias rr="bundle exec rspec"

It will be appended to this file ~/.bash_rc

Upvotes: 2

Related Questions