quality-tutorial icon indicating copy to clipboard operation
quality-tutorial copied to clipboard

Implement more realistic service to demonstrate better Behat usage

Open asgrim opened this issue 7 years ago • 2 comments

Feedback from Steve was that he left feeling that Behat didn't hold much over phpunit: so whilst I got the point across that you should be testing at the "domain" level, because the code we were testing was too contrived, there wasn't any "complexity" to make the domain testing "shine" as it were. Could improve this by having a more realistic service implementation for future.

asgrim avatar Jun 11 '18 14:06 asgrim

Note that what should emerge from all the Behat discussion is that there is a readable specification/documentation of the software.

The testing bit is more like a side-effect of that :-)

Ocramius avatar Jun 11 '18 20:06 Ocramius

Yeah I think I got that bit across, was mainly the implementation of the tests was a bit sparse (maybe my domain implementation was "perfect" hahahahahahah)

asgrim avatar Jun 11 '18 20:06 asgrim