Pragmatic TDD

Luka Mužinić (13.Apr.2018 at 09:30, 3 hr )
Workshop at PHP Yorkshire 2018 (English - UK)

Rating: 4 of 5

Developers still hesitate to include writing tests in their everyday routine. There are numerous excuses, myths and misconceptions around: “they slow us down”, “we’ll never achieve 100% code coverage, so why bother”, “takes too much time to learn testing, we’re better of writing business logic instead”. When we get to the topic of writing tests first, the debate becomes even more heated.

In real world, where you get paid by code that ships, developer strive to write the most efficient tests possible. To cover mission critical code. To quickly decide whether writing a functional test or series of unit tests is the best approach. Let us learn together how to use phpunit and TDD in most efficient way possible, for extraordinary results.

This workshop is for developers who start their projects by drawing model of the database first, developers who are overwhelmed by number of testing tools or don’t know where to start and developers who simply want to level up their game.

This workshop is framework agnostic, using what is available via composer/packagist. Main tool that is going to be used is phpunit, but knowledge can easily be translated to others (phpspec, codeception...).

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

 
Comments closed.

Comments

Rating: 4 of 5

13.Apr.2018 at 12:38 by Diego Cabrejas (2 comments) via Web2 LIVE

Very good introduction to TDD, Luka gave us some experience going through an example using TDD, I feel like I learned a lot and can't wait to try it at work. The only thing was that sometimes I couldn't listen to all the explanations because it was required to write a lot of boilerplate code, I would suggest cutting the amount of boilerplate code the attendees write, limiting it only to the fun part (writing the logic).

Rating: 4 of 5

13.Apr.2018 at 12:39 by Pim Elshoff (65 comments) via Web2 LIVE

Very good testing primer with a challenging example codebase. Luka obviously knows his stuff and is comfortable in front of the group.

The workshop was a nice mix. First a wider, high level approach, then a deeper, low level approach. I would have liked to see and hear more about tests and confidence; run tests often to make sure you *stay* on the path, and not just back to the path often.

To make this a 5/5 for me, polish it up more and send the audience off with homework to keep them on the testing path.

Speaker comment:

13.Apr.2018 at 14:23 by Luka Mužinić (57 comments) via Web2 LIVE

Awesome feedback! Thanks a lot!

Rating: 4 of 5

13.Apr.2018 at 22:26 by Kenneth Schabrechts (55 comments) via Web2 LIVE

Loved the approach and guidance in to the testing. We started with a simple test and some explanation. Next up was deeper level testing.

The explanation was done well and it showed you know your stuff.

Would have loved some homework / tips on things to discover about testing.

Good job!

© Joind.in 2018