baweaver / clairvoyant

Divine what code you meant to write to make your tests pass
MIT License
16 stars 2 forks source link

Ooh! Like a Smalltalk VM! #2

Open Trevoke opened 6 years ago

Trevoke commented 6 years ago

Shame this project looks abandoned, it could really help change the face of TDD in Ruby.

baweaver commented 6 years ago

More of the approach I was using wasn't really a great one, so I was waiting for inspiration on how to approach it differently.

I might try something along the lines of Pry rescue and inject into exceptions. Test fails, generate basic code and open $EDITOR with it there. Options to skip a particular test, move on, or otherwise.

Might tie into Guard for the loop / watch behavior and use reporters or something to catch errors using Rspecs output.

Short version though, just hadn't come up with a good way to do it. The current way was unsustainable and works against Rspec instead of with it.