bullet-train-co / magic_test

MIT License
440 stars 23 forks source link

Assertion improvements #81

Closed adrianvalenz closed 1 year ago

adrianvalenz commented 1 year ago

This PR brings in a new feature where you can select your test and right-click with your mouse or touchpad and generate your assertions. The idea behind this is to improve workflow by allowing the developer to quickly generate assertions. Another new feature to note is that instead of an alert dialog popping up, it is now a confirm dialog asking for confirmation to move forward with the assertion or to cancel. If you cancel it won't generate an assertion and it is also a great moment in the workflow to reselect text in case you missed a letter or word.

I'm going to encourage developers to run their tests with bin/magic executable because we have an option to pass that will run either an RSpec or MiniTest run and depending on which you choose it will generate the proper syntax. reference