jaredbeck / minitest_to_rspec

Converts minitest files to rspec
MIT License
81 stars 12 forks source link

Make a single command to take all of the minitest files and convert it into an equivalent rspec structure. #2

Open harsh183 opened 8 years ago

harsh183 commented 8 years ago

Taking one file at a time is quite a lot of work so if there a single command, so a new command which will take the whole thing and convert it into a rpsec file structure with all the equivalent tests.

jaredbeck commented 8 years ago

Good idea. I'd be happy to review a PR that adds this feature.

For now, maybe use a bash loop?

for i in $( find test -name '*_test.rb' ); do
  mt2rspec "$i"
done
harsh183 commented 8 years ago

Thanks, maybe I'll make that later. (Unless you want to)

jaredbeck commented 8 years ago

Thanks, maybe I'll make that later. (Unless you want to)

Go for it. Most of the new feature will go in lib/minitest_to_rspec/cli.rb.

harsh183 commented 8 years ago

Sure, I'm a little busy so a bit later.

On Tue, Aug 9, 2016 at 10:04 PM Jared Beck notifications@github.com wrote:

Thanks, maybe I'll make that later. (Unless you want to)

Go for it. Most of the new feature will go in lib/minitest_to_rspec/cli.rb .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jaredbeck/minitest_to_rspec/issues/2#issuecomment-238611187, or mute the thread https://github.com/notifications/unsubscribe-auth/AHa3Zm7PyfbggFf6R2vZZgIkaaXFPLPGks5qeKwjgaJpZM4JftPi .

Harsh Deep