Shopify / deprecation_toolkit

⚒Eliminate deprecations from your codebase ⚒
MIT License
454 stars 40 forks source link

Run deprecated tests #69

Closed sobrinho closed 2 years ago

sobrinho commented 2 years ago

We are currently using this script when we fix one exception that is spread over a lot of specs:

for file in $(git grep module_parent spec/deprecation/ | cut -d: -f1 | sort -u); do
  DEPRECATION_BEHAVIOR=record bin/rspec "${"${file/deprecation\//}"/.yml/_spec.rb}" || return 1;
done

Would be nice to have some native solution to get deprecated specs like bundle exec deprecation_toolkit deprecated which would print all spec files with deprecation.

And to search something, we could have a simple grep like the script such as bundle exec deprecation_toolkit deprecated module_parent.

rafaelfranca commented 2 years ago

Good idea. We use a different solution for this so we will not implement it, but pull requests welcome. Closing since we don't plan to implement it.