Talk in English - UK at ScotlandPHP 2017
Track Name:
Platform.sh track
View Slides: https://slidr.io/belanur/the-myth-of-untestable-code-scotlandphp-2017
Short URL: https://joind.in/talk/aba57
(QR-Code (opens in new window))
Contrary to popular belief, no code is untestable. Sure, writing unit tests for well-crafted code that follows the SOLID principles is easy. But what about legacy code residing in some god class with implicit dependencies and no separation of concerns? We will show you that it is possible to write tests for even the worst code by explaining the why, the what, the how, and the when of software testing while looking at real-world examples.
Comments
Comments are closed.
Very well presented, learnt some very useful new techniques that I hadn't been aware of.
I really enjoyed this talk.
Seb set the scene well and introduced what is a common problem.
I took away two points:
1. The importance of a basic end to end test to support initial refactoring
2. Branching by abstraction as an option to facilitate migration
Incredibly helpful! Loads of testing talks hammer in the basics and the ideal scenarios, but this is the only one I’ve seen which addresses the edge cases and situations where the ideal practices can’t work.
Great points on the many ways of using PHPUnit for testing outside of the standard practices.
Always love talks from the trenches. Good content mixed in with some humour.
I enjoyed the talk and the speaker did a nice delivery! I learned a few things specially de-legacy FYI, some other cool tooling and understand the types of tests and what to do.
I took the opportunity to advertise php-vcr, I hope you didn't mind it!
My favourite quote from this was "testing clean code is easy, testing legacy code is hard" - all too often that gets overlooked and it was nice to see a real world example as the way to gradually move yourself out of an untested legacy nightmare!
And 422613806751446844383776889554081900123042754108583958093751102384903715343564800000 is a LONG number! ;)
Very interesting talk, delivered well with some useful practices I hope to carry forward into my future development to make life easier. Thanks again :)
Well presented talk, though not getting that much new learnings out of it.
I really enjoyed this talk, it was practical and felt very real world.