Open mattwynne opened 9 years ago
source locations in tcl are tricky. Here's my attempt. The frame level there will probably need some logic, as it's fine-tuned to the project set-up
@jowers can you take a look?
@jowers the updated version: in cucumber-tcl-wire that is more robust against frame level differences
Hi @d-led, thanks for the contribution on this.
I'll try to put together a test that we can try out - as you said, source locations can be tricky, and I'm finding that testing in a standlone file is returning locations one level out at the moment. Probably best to see how it behaves within the cucumber code before I go investiigating that though.
@jowers you're welcome! Here's the initial isolated investigation that lead to the code http://ideone.com/mdBT4s
upd: the only magic number left is the framelevel of get_location
, which also could probably be robustly defined
the shortcomings can be seen here: http://ideone.com/K5zZva
De-scoped from #22.
example: