lib/retest/options.rb in retest-0.9.0 vs lib/retest/options.rb in retest-1.0.0.pre
- old
+ new
@@ -46,17 +46,28 @@
example <<~EOS
Let retest identify which command to run for all tests
$ retest --all
$ retest --auto --all
EOS
+
+ example <<~EOS
+ Run a sanity check on changed files from a branch
+ $ retest --diff origin/main --rails
+ $ retest --diff main --auto
+ EOS
end
argument :command do
optional
desc <<~EOS
The test command to rerun when a file changes.
Use <test> placeholder to tell retest where to put the matching spec.
EOS
+ end
+
+ option :diff do
+ desc "Pipes all matching tests from diffed branch to test command"
+ long "--diff=git-branch"
end
flag :all do
long "--all"
desc "Run all the specs of a specificied ruby setup"
\ No newline at end of file