Take a look at the behave package, looks similar to what you are trying to implement.
Noam Kremen
11

Thanks, I’m familiar with behave and I believe that the syntax can be improved.
What you say about DSLs is true, but bugs can be fixed and after all we are talking about test code, not production code.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.