Skip to content

Add a Rake task to run specs for multiple versions of Rails#28

Merged
doliveirakn merged 2 commits intoclio:masterfrom
mctaylorpants:test-all-rails-versions
Dec 19, 2019
Merged

Add a Rake task to run specs for multiple versions of Rails#28
doliveirakn merged 2 commits intoclio:masterfrom
mctaylorpants:test-all-rails-versions

Conversation

@mctaylorpants
Copy link
Copy Markdown
Contributor

Since we support versions of Rails from 4 onwards, and we now have many version-specific patches, it would be nice to have an easy way to run specs on all supported versions to verify new changes.

This PR adds a rake task, test:all, which iterates through a collection of Gemfiles and run the specs.

The organization of the Gemfiles is inspired by devise, which takes a similar approach to managing different Rails versions.

🎬 Here it is in action:

$ rake test:all 2> /dev/null
Running specs for Gemfile.rails-5.0-stable
............................

Finished in 0.19595 seconds (files took 0.52644 seconds to load)
28 examples, 0 failures


Running specs for Gemfile.rails-5.2-stable
............................

Finished in 0.2064 seconds (files took 0.55434 seconds to load)
28 examples, 0 failures


Running specs for Gemfile.rails-4.2-stable
............................

Finished in 0.19892 seconds (files took 0.42005 seconds to load)
28 examples, 0 failures


Running specs for Gemfile.rails-5.1-stable
............................

Finished in 0.2044 seconds (files took 0.52197 seconds to load)
28 examples, 0 failures

@mctaylorpants mctaylorpants force-pushed the test-all-rails-versions branch 2 times, most recently from 69618a8 to 539821b Compare December 19, 2019 00:41
@mctaylorpants mctaylorpants force-pushed the test-all-rails-versions branch from 6dccbad to 6fb709b Compare December 19, 2019 00:42
@doliveirakn doliveirakn merged commit 16aa0d0 into clio:master Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants