"Let's Code" When TDD Goes Wrong and how to fix it - Coding RestMud in Java, JUnit and TDD - Part 3
In this video we demonstrate some mistakes that you can make when you use TDD (deliberately of course!) A retrospective of why and how TDD can go wrong. "Let's Code" When TDD Goes Wrong and how to fix it - Coding RestMud in Java, using JUnit and TDD - Part 3 We discuss: - creating tests that are too large - tests which do not make clear the design - comments in the test code - discuss the problems with fixing 'bad' TDD @Test methods because we are 'breaking' tests so how do we know they still work afterwards? - keep the bad test the same - create smaller tests which 'cover' the big test functionality in small chunks - remove the big test - unwind the test - track tests back to requirements and acceptance criteria - my 'developer' testing is finished, but then I have to start with my 'tester' testing - review code against the acceptance criteria - review data combinations and state combinations to check 'testing' coverage - exploratory testing by writing disposable unit tests because at certain levels of the application we can test inside, if we have the tools and technology to support that level of testing - continually refactor the test DSL to make writing and reading the @Test code easier - can only run `@Ignore` tests from the IDE if they do not have @BeforeClass methods - decisions about which level to add tests (not based on a pyramid model) RestMud is a Text Adventure Game designed to help you practice and improve your technical testing skills for both Web GUI and REST API. You can find out more about RestMud and download it at http://compendiumdev.co.uk/page/restmud Videos in this series: - [Test Driven Development - Create a Text Adventure Game Puzzle using Java, JUnit and TDD (Part 1)](https://youtu.be/NfwrhQf5THU) - [Test Driven Development code a Text Adventure Game Puzzle in Java, using JUnit and TDD - Part ](https://youtu.be/c8DWW7TfWg4) - ["Let's Code" When TDD Goes Wrong and how to fix it - Coding RestMud in Java, JUnit and TDD - Part ](https://youtu.be/dutkCyUT0Xw) - ["Let's Code" Testing RestMud - Java, JUnit, Automation Abstractions, Exploratory Testing - Part4](https://youtu.be/-ksfP7Wtd-o) ************* ► Subscribe to My Channel For more videos like this http://www.youtube.com/subscription_center?add_user=EvilTesterVideos ************* ►► Contact Details: Read my writing and blogs at: ✓ http://www.eviltester.com ✓ http://www.seleniumsimplified.com ✓ http://www.javafortesters.com ✓ http://www.compendiumdev.co.uk Follow me on social media: ★ https://uk.linkedin.com/in/eviltester ★ https://twitter.com/eviltester - @eviltester ★ https://www.instagram.com/eviltester/ ★ https://uk.pinterest.com/eviltester/ ************* ►► Read my books http://compendiumdev.co.uk/page/books ★ "Dear Evil Tester" - explore the tester's mind ★ "Java For Testers" - learn to code in Java ★ "Automating and Testing a REST API - a case study" ************* ►►Learn skills from my online training courses http://www.compendiumdev.co.uk/page/online_training ★ Selenium WebDriver With Java ★ Technical Web Testing 101 ★ Evil Tester Talks Technical Testing ★ Case Study: Java Desktop Application Technical Training *************
In this video we demonstrate some mistakes that you can make when you use TDD (deliberately of course!) A retrospective of why and how TDD can go wrong. "Let's Code" When TDD Goes Wrong and how to fix it - Coding RestMud in Java, using JUnit and TDD - Part 3 We discuss: - creating tests that are too large - tests which do not make clear the design - comments in the test code - discuss the problems with fixing 'bad' TDD @Test methods because we are 'breaking' tests so how do we know they still work afterwards? - keep the bad test the same - create smaller tests which 'cover' the big test functionality in small chunks - remove the big test - unwind the test - track tests back to requirements and acceptance criteria - my 'developer' testing is finished, but then I have to start with my 'tester' testing - review code against the acceptance criteria - review data combinations and state combinations to check 'testing' coverage - exploratory testing by writing disposable unit tests because at certain levels of the application we can test inside, if we have the tools and technology to support that level of testing - continually refactor the test DSL to make writing and reading the @Test code easier - can only run `@Ignore` tests from the IDE if they do not have @BeforeClass methods - decisions about which level to add tests (not based on a pyramid model) RestMud is a Text Adventure Game designed to help you practice and improve your technical testing skills for both Web GUI and REST API. You can find out more about RestMud and download it at http://compendiumdev.co.uk/page/restmud Videos in this series: - [Test Driven Development - Create a Text Adventure Game Puzzle using Java, JUnit and TDD (Part 1)](https://youtu.be/NfwrhQf5THU) - [Test Driven Development code a Text Adventure Game Puzzle in Java, using JUnit and TDD - Part ](https://youtu.be/c8DWW7TfWg4) - ["Let's Code" When TDD Goes Wrong and how to fix it - Coding RestMud in Java, JUnit and TDD - Part ](https://youtu.be/dutkCyUT0Xw) - ["Let's Code" Testing RestMud - Java, JUnit, Automation Abstractions, Exploratory Testing - Part4](https://youtu.be/-ksfP7Wtd-o) ************* ► Subscribe to My Channel For more videos like this http://www.youtube.com/subscription_center?add_user=EvilTesterVideos ************* ►► Contact Details: Read my writing and blogs at: ✓ http://www.eviltester.com ✓ http://www.seleniumsimplified.com ✓ http://www.javafortesters.com ✓ http://www.compendiumdev.co.uk Follow me on social media: ★ https://uk.linkedin.com/in/eviltester ★ https://twitter.com/eviltester - @eviltester ★ https://www.instagram.com/eviltester/ ★ https://uk.pinterest.com/eviltester/ ************* ►► Read my books http://compendiumdev.co.uk/page/books ★ "Dear Evil Tester" - explore the tester's mind ★ "Java For Testers" - learn to code in Java ★ "Automating and Testing a REST API - a case study" ************* ►►Learn skills from my online training courses http://www.compendiumdev.co.uk/page/online_training ★ Selenium WebDriver With Java ★ Technical Web Testing 101 ★ Evil Tester Talks Technical Testing ★ Case Study: Java Desktop Application Technical Training *************