Closed robinboehm closed 10 years ago
Hi Robin,
thanks for the addition. I know already some people who override this
in their test methods, which would make this a breaking change (which is not bad entirely, we will have some of them in the future).
Would live to have more input from @ryanzec & @rodneyrehm before getting this in. Any thoughts guys?
I don't see how any other context than the unit ("test") could be useful here. And if you wanted to use another context, you could always bind it yourself. Ergo: I have no problem with this idea at this point.
I also agree that making this
bind to the test makes logical sense.
Alright then. Lets get this in. Thanks @robin, especially for getting the commit message right :D Thanks @ryanzec & @rodney for reviewing.
:+1:
@asciidisco you linked a "random robin" :D haha :100:
@robinboehm Ahh. Sorry "random @robin", too much context switching made me mad ;)
Bind this to the current test at execution. Semantic: "this is the current test".
No need to use a function argument for accessing DSL.
Example Code:
Also set test via the arguments array to backward compatibility.
I've also tried to add a test for this, but there is not so much base-tests to extend ... So I'm not so deep enough into dalek to create the initial test-suite.