cucumber-attic / cucumber-ruby-tcl

Tcl bindings for Cucumber
MIT License
9 stars 6 forks source link

Add tests for failing steps / backtraces #23

Closed mattwynne closed 9 years ago

mattwynne commented 9 years ago

As far as I can see, we've never added any tests for the behaviour when a step fails.

It would be useful to have acceptance tests for this so we can pin down the behaviour about reporting Tcl backtraces etc.

@jowers do you want to add some characterization tests and we can see where we are?

jowers commented 9 years ago

Sounds sensible. I'll look at this once we've got the pending stuff done.

jowers commented 9 years ago

Pull request #26 created

mattwynne commented 9 years ago

Maybe I wasn't clear, but #26 doesn't cover what I was thinking about here.

I'm talking about the one where the step matches, runs, but throws and error, and the error messga and (Tcl) backtrace are printed to Cucumber's output.

jowers commented 9 years ago

Yeah, that is on the list, but I thought I'd make sure I cover all the errors. Will add a couple more over the weekend :-)

jowers commented 9 years ago

I've added a couple of additional tests now that demonstrate the behaviour of a failing step, and merged them back to master.