Victor Rentea - Unit Testing like a Pro: The Circle of Purity
Being able to focus on the fun creative part without any fear can make development very addictive. Extensive unit tests can buy you that! However, unit test code is still code, lots and lots of it, if done right. And it has to be maintained just like any other code.
Test code can be 3x times larger than the prod code, so if your tests are not maintainable they will end up slowing you down and causing you painful headaches, compilation errors and spurious failures. To avoid that, your unit tests should be significant; expressive; clean; DRY; non-overlapping; and blazing fast. They are hard to write. And they have principles you need to follow. Principles that will end up shaping the way you design your production code itself. And then it will be obvious: unit testing is all about balancing cost-benefit. It’s about maximizing the regression protection you get vs. the maintenance price you need to pay for those tests. It’s engineering.
Grab a black coffee and join this extract from Victor’s Pro Unit Testing training. You will learn about testing priorities, avoiding buggy tests, testing exceptions with JUnit 5, the shared @Before nexus, guidelines for breaking an unit test, and crafting splendid expressive failures. In the end, based on the difference between a Stub and a Mock you’ll get applicable advises that can make your code a lot more testable and easy to understand, isolating tough critical logic inside a ‘circle of purity’. All of that in an entertaining, dynamic and memorable session.
Видео Victor Rentea - Unit Testing like a Pro: The Circle of Purity канала Devoxx
Test code can be 3x times larger than the prod code, so if your tests are not maintainable they will end up slowing you down and causing you painful headaches, compilation errors and spurious failures. To avoid that, your unit tests should be significant; expressive; clean; DRY; non-overlapping; and blazing fast. They are hard to write. And they have principles you need to follow. Principles that will end up shaping the way you design your production code itself. And then it will be obvious: unit testing is all about balancing cost-benefit. It’s about maximizing the regression protection you get vs. the maintenance price you need to pay for those tests. It’s engineering.
Grab a black coffee and join this extract from Victor’s Pro Unit Testing training. You will learn about testing priorities, avoiding buggy tests, testing exceptions with JUnit 5, the shared @Before nexus, guidelines for breaking an unit test, and crafting splendid expressive failures. In the end, based on the difference between a Stub and a Mock you’ll get applicable advises that can make your code a lot more testable and easy to understand, isolating tough critical logic inside a ‘circle of purity’. All of that in an entertaining, dynamic and memorable session.
Видео Victor Rentea - Unit Testing like a Pro: The Circle of Purity канала Devoxx
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Victor Rentea - Evolving a Clean, Pragmatic Architecture – A Software Crafter’s Guide](https://i.ytimg.com/vi/tMHO7_RLxgQ/default.jpg)
![Effective Unit Testing by Eliotte Rusty Harold](https://i.ytimg.com/vi/fr1E9aVnBxw/default.jpg)
![Clean Lambdas - by Victor Rentea at JBCNConf'17](https://i.ytimg.com/vi/qcIiufH_u7c/default.jpg)
![Write awesome tests by Jeroen Mols](https://i.ytimg.com/vi/F8Gc8Nwf0yk/default.jpg)
![](https://i.ytimg.com/vi/qWFmmR3BJm0/default.jpg)
![Unresolved: The Techonomic Cold War With China](https://i.ytimg.com/vi/uF0uYyfeoyY/default.jpg)
![Unit Testing like a Pro - Towards a Testable Design by Victor Rentea](https://i.ytimg.com/vi/mMvrCDW6rVM/default.jpg)
![Testing made sweet with a Mockito by Jeroen Mols](https://i.ytimg.com/vi/DJDBl0vURD4/default.jpg)
![A Deep Dive into Apache Kafka This is Event Streaming by Andrew Dunnings & Katherine Stanley](https://i.ytimg.com/vi/X40EozwK75s/default.jpg)
![Kubernetes: Your Next Java Application Server by Burr Sutter](https://i.ytimg.com/vi/T7swgJzx4a4/default.jpg)
![Clean Code - Uncle Bob / Lesson 6](https://i.ytimg.com/vi/l-gF0vDhJVI/default.jpg)
![Victor Rentea — The Proxy fairy and the magic of Spring](https://i.ytimg.com/vi/HbbvyZh3IZo/default.jpg)
![Python Tutorial: Unit Testing Your Code with the unittest Module](https://i.ytimg.com/vi/6tNS--WetLI/default.jpg)
![Pragmatics of TDD to Evolve Design: part 1 (Venkat Subramaniam, USA)](https://i.ytimg.com/vi/tzH_10zrGHQ/default.jpg)
![Evolving a Pragmatic, Clean Architecture A Craftsman's Guide by Victor Rentea](https://i.ytimg.com/vi/KOqIUNUq2Gg/default.jpg)
![Can You Become a Programmer After 30 Years Old?](https://i.ytimg.com/vi/oEL6lAdAe_M/default.jpg)
![Jakarta EE MicroProfile WebStandards, On Stage Hacking noslides by Adam Bien](https://i.ytimg.com/vi/_a8FVESHjlQ/default.jpg)
![10,000 Java performance tips over 15 years - what did I learn? by Jack Shirazi](https://i.ytimg.com/vi/OYpTn0nWKR4/default.jpg)
![GOTO 2013 • JS Unit Testing Good Practices & Horrible Mistakes • Roy Osherove](https://i.ytimg.com/vi/iP0Vl-vU3XM/default.jpg)
![Testing The Way It Should Be (aka Intro Into Cypress)](https://i.ytimg.com/vi/pJ349YntoIs/default.jpg)