bullet-train-co / magic_test

MIT License
440 stars 23 forks source link

Feature/add bin executable #75

Closed adrianvalenz closed 1 year ago

adrianvalenz commented 1 year ago

This PR adds an executable you can use in your Rails app. Just run bundle binstubs magic_test and it will allow you run bin/magic test test/system/basics_test.rb or if you are using RSpec you can use bin/magic spec spec/system/basics_spec.rb and that will run a Magic Test using RSpec.

You can also run bin/magic --help to see details about the options.

This is going to reduce quite a few keystrokes over time for the developer, allowing them to not have to write the verbose MAGIC_TEST=1 rails test test/system/basics_test.rb and type the environment variable each time, since it is passed implicitly in the executable command.