Behat for characterisation on tests

Michael Heap (08.Jun.2018 at 10:45, 45 min)
Talk at Dutch PHP Conference 2018 (English - US)

Rating: 4 of 5

Once an API ships it doesn't matter how it should behave - how it actually behaves is the important part. Users depend on the existing behaviour and we need a way to ensure that it doesn't change

Behat is a tool that was built to help design software, but it’s actually a great tool for capturing existing behaviour too.

We’ve used these tools to gain confidence to refactor 5+ year old apps by capturing the existing behaviour before making changes. I want to share the secrets we learned with you

Who are you?

Claim talk

Talk claims have been moved to the new Joind.in site.

Please login to the new site to claim your talk

Want to comment on this talk? Log in or create a new account or comment anonymously

Write a comment

 
Please note: you are not logged in and will be posting anonymously!
= eight minus two

Comments

Rating: 4 of 5

08.Jun.2018 at 11:54 by Bastian (3 comments) via Web2 LIVE

A clear and structured talk.

Rating: 4 of 5

08.Jun.2018 at 11:57 by Choong Wei Tjeng (10 comments) via Web2 LIVE

Learned a lot as someone with zero BDD or Behat experience. Clear talk. I liked how the focus was not just 'hah look at these cool tools!', but there was some backstory to illustrate the context and when/why you should (not) use them.

Personally I would have enjoyed watching some tests run live. It is a satisfying feeling ;)

All in all, good talk.

Rating: 3 of 5

08.Jun.2018 at 12:05 by David Higler (21 comments) via Web2 LIVE

Very informative. Nice approach to first describe the current behavior to more confidently refactoring code. A bit dry, but that comes with the subject I gues.

Rating: 5 of 5

08.Jun.2018 at 12:33 by Christiaan Bye (7 comments) via Web2 LIVE

The subject of testing can be a bit stale at times, but Michael presented the subject in a very clear, informative and even enjoyable way. Very good talk!

I think the situation of “application or workspace without tests” is all to common. I therefore reckon that this talk could be converted to a tutorial format and would have a great reach within the community.

Rating: 4 of 5

08.Jun.2018 at 15:40 by Marieke Bednarczyk (41 comments) via Web2 LIVE

Nice to learn more about behat! I would like to use it more, so learning about snapshots and mountebank was really interesting!

Rating: 4 of 5

08.Jun.2018 at 23:05 by Nic Wortel (16 comments) via Web2 LIVE

Inheriting an untested legacy codebase and having to maintain and improve it can be off-putting even in a best-case scenario. This talk shows, with practical examples and tips, how to use Behat to write system tests that improve your confidence to refactor a piece of legacy code. It includes topics like API tests, mocking other (REST) API's, and automating browser tests. I think it would have been nice to add some hints about how to factor the database into the equasion, but other than that, it is a great talk - especially for those who are new to Behat and system testing.

Rating: 4 of 5

08.Jun.2018 at 23:51 by Xavier Vidal (4 comments) via Web2 LIVE

The talk was good.
If I'm not wrong it was "medium level" bit it was completly a "beginner's level", but I sti'll stayed.

Rating: 4 of 5

09.Jun.2018 at 10:24 by Harold Claus (15 comments) via Web2 LIVE

Thank you for the clear & structured talk about Behat. Picked up a lot!

Rating: 4 of 5

09.Jun.2018 at 11:42 by Steve Winter (51 comments) via Web2 LIVE

Well structured - liked the context used and the pragmatic approach taken. Would have liked to have seen some of the tests run.

Rating: 5 of 5

09.Jun.2018 at 12:20 by Mark Hamstra (15 comments) via Web2 LIVE

As someone new to behat, I decided to look it up and look at some examples prior to the talk. Sometimes talks about specific tools can be boring and just rehashing of the documentation, but Michael gave a great introduction to why you would do this and also practical advice on what (not!) to do. Definitely looking forward to applying this in upcoming projects.

Rating: 5 of 5

11.Jun.2018 at 09:38 by Robert Basic (97 comments) via Web2 LIVE

As a heavy Behat user even I learned a couple of new things about it! The talk was nicely structured, well presented. I think the introduction to the material was spot on.

Rating: 4 of 5

11.Jun.2018 at 10:55 by Peter Lindqvist (18 comments) via Web2 LIVE

For me personally this was very informative and the style of the talk was good.

Rating: 5 of 5

11.Jun.2018 at 11:53 by Dave Liddament (67 comments) via Web2 LIVE

A good introduction to characterisation tests.

I'd love to see a version of this talk or even a workshop that goes into more detail, especially with nitty gritty, like code that makes database calls.

Rating: 5 of 5

11.Jun.2018 at 17:06 by Nikola Paunovic (2 comments)

Really nicely put how to tackle any legacy thing that You get.

Rating: 5 of 5

14.Jun.2018 at 18:54 by Arnout Boks (70 comments) via Web2 LIVE

Great talk, and well-delivered. Nice that you're addressing the trade-offs that come with characterisation tests.

© Joind.in 2018