The Myth of untestable Code

Sebastian Heuer (04.Nov.2017 at 10:30, 50 min)
Talk at ScotlandPHP 2017 (English - UK)

Rating: 5 of 5

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.

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

04.Nov.2017 at 11:29 by Ken Guest (35 comments) via Web2 LIVE

Very well presented, learnt some very useful new techniques that I hadn't been aware of.

Rating: 4 of 5

04.Nov.2017 at 12:01 by Richard Harrison (13 comments) via Web2 LIVE

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

Rating: 5 of 5

04.Nov.2017 at 12:39 by Andrew Macdonald (6 comments)

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.

Rating: 5 of 5

04.Nov.2017 at 13:28 by Daniel Craigie (20 comments) via Web2 LIVE

Great points on the many ways of using PHPUnit for testing outside of the standard practices.

Rating: 5 of 5

04.Nov.2017 at 15:31 by Jeroen v.d. Gulik (99 comments) via Joind.in iPhone app

Always love talks from the trenches. Good content mixed in with some humour.

Rating: 4 of 5

04.Nov.2017 at 17:48 by Renato Mendes Figueiredo (15 comments) via Web2 LIVE

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!

Rating: 5 of 5

07.Nov.2017 at 22:29 by Matt Brunt (57 comments) via Web2 LIVE

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! ;)

Rating: 5 of 5

08.Nov.2017 at 00:50 by Aaron Henderson (12 comments) via Web2 LIVE

Very interesting talk, delivered well with some useful practices I hope to carry forward into my future development to make life easier. Thanks again :)

Rating: 4 of 5

08.Nov.2017 at 14:32 by Raphael Stolt (21 comments) via Web2 LIVE

Well presented talk, though not getting that much new learnings out of it.

Rating: 5 of 5

08.Nov.2017 at 14:49 by Andy Gaskell (24 comments) via Web2 LIVE

I really enjoyed this talk, it was practical and felt very real world.

© Joind.in 2019