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

retest --auto option #31

Closed
AlexB52 opened this issue Nov 18, 2020 · 0 comments · Fixed by #58
Closed

retest --auto option #31

AlexB52 opened this issue Nov 18, 2020 · 0 comments · Fixed by #58
Labels
enchancements New feature or request help wanted Extra attention is needed
Milestone

Comments

@AlexB52
Copy link
Owner

AlexB52 commented Nov 18, 2020

retest should know about few options.
One option is --auto which should be a shortcut to infer the type of ruby project used and run the appropriate command

Those two commands should be equivalent

retest 
retest --auto

Used on a rails project, it should run retest 'bundle exec rails test <test>'
Used on a rake like a gem, it should run retest 'bundle exec rake test TEST=<test>'
Used on a ruby project, it should run retest 'ruby <test>
Used on a rspec project but not using rails command, it should run retest 'bundle exec rspec <test>

As an example, aliases are used by people this way. See #15

alias rtt="if [ -x bin/rails ]; then retest 'bin/rails test <test>'; else retest 'bundle e rake test TEST=<test>'; fi"
@AlexB52 AlexB52 added this to the Auto Option milestone Nov 18, 2020
@AlexB52 AlexB52 added the help wanted Extra attention is needed label Feb 23, 2021
@AlexB52 AlexB52 added the enchancements New feature or request label Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enchancements New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant