Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
harsh183 opened this issue Aug 9, 2016 · 4 comments

Comments

@harsh183
Copy link

harsh183 commented Aug 9, 2016

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
Copy link
Owner

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
Copy link
Author

harsh183 commented Aug 9, 2016

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

@jaredbeck
Copy link
Owner

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
Copy link
Author

harsh183 commented Aug 9, 2016

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
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHa3Zm7PyfbggFf6R2vZZgIkaaXFPLPGks5qeKwjgaJpZM4JftPi
.

Harsh Deep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants