Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Unit testing: Helping the business to win | Emily Bache | LTG-43/DTG-7

385 views

Published on

Presentation hållen vid samarrangemanget Lean Tribe Gathering 43 och Dev Tribe Gathering 7 i Göteborg 9 maj 2017.

Published in: Software
  • Be the first to comment

  • Be the first to like this

Unit testing: Helping the business to win | Emily Bache | LTG-43/DTG-7

  1. 1. +45 36772 762 info@praqma.com www.praqma.com Helping the Business to Win Unit Testing: Emily Bache May 2017 DevTribe
  2. 2. An Example Defect This line made Apple products vulnerable to ‘man in the middle’ attacks over ssh opensource.apple.com/source/Security/Security-55471/libsecurity_ssl/lib/sslKeyExchange.c
  3. 3. Make it Testable Extract a function that can be tested in isolation http://martinfowler.com/articles/testing-culture.html
  4. 4. Write Unit Tests…
  5. 5. … And a Testing Framework
  6. 6. Defect found! 20 line function 100 lines tests and fixture
  7. 7. The Defect in Context:
  8. 8. Development Culture “The presence of six separate copies of the same algorithm clearly indicates that this bug was not due to a one-time programmer error: This was a pattern. This is evidence of a development culture that tolerates duplicated, untested code.” http://martinfowler.com/articles/testing-culture.html
  9. 9. What is Development Culture? Version control & Branching Strategy Code review Strategy Testing Strategy Hiring criteria Development Tool choices Architecture & Design process …
  10. 10. Helping the Business to Win “Firms with high-performing IT organisations were twice as likely to exceed their profitability, market share and productivity goals” https://puppet.com/resources/white-paper/2014-state-of-devops-report
  11. 11. Analysis “this research …suggests that version control, test automation, and continuous integration are the most important aspects to implement in the field”
  12. 12. +45 36772 762 info@praqma.com www.praqma.com Helping the Business to Win Unit Testing: Emily Bache May 2017 DevTribe

×