With this command you can run all the spec files which have been edited or added in the current branch since master:
git diff --name-only master -- ./spec | xargs -I{} rspec {} 
- If you have several spec folders add them for path parameter after ./specaccordingly.
- The option -I{}creates a placeholder to be replaced.
- You can also compare edited/added specs between commits with <commit>..<commit>
Posted by Felix Eschey to makandra dev (2024-09-24 11:58)