Post details
Doing a bit of TDD as a treat (I require the dopamine from seeing red turn into green)
Doing a bit of TDD as a treat (I require the dopamine from seeing red turn into green)
You don't need a full-featured testing framework, or something that outputs in JUnit format, to get the value of a red-green-refactor loop. All you need is a feedback mechanism, which can be as simple as "does the exit code for this process indicate an error or success?". Kent Beck's test-commit-revert demo using python does exactly this - no importing a framework or test runner, but leaning on python's built-in `assert` keyword. https://youtu.be/Aof0F9DvTFg?t=220&si=D7afjzT2GvTEhTQn
Retrofitting OpenAPI documentation to your Rails codebase (12 mins read).
How to take a Rails codebase and introduce OpenAPI documentation and contract tests, in a test-driven manner.
Avoiding Spring context issues when parallelising @Nested
Spring integration tests (3 mins read).
Using abstract base classes to reduce risk of Spring context overall issues with Spring (Boot) integration tests.
Integration Testing Your Spring WebClient
s with Wiremock (4 mins read).
How to write integration tests using Wiremock, for use with WebClient
s.
Testing @Scheduled
annotations with Spring (Boot) (2 mins read).
How to test your Spring (Boot) scheduling without waiting for hours.
Excluding Filter
s When using WebMvcTest
(1 mins read).
How to exclude specific Filter
s from running when performing WebMvcTest
s.
Integration Testing Your Spring WebClient
s with okhttp's MockWebServer
(5 mins read).
How to write integration tests using MockWebServer
with Spring Boot, for use with WebClient
s.
Integration Testing Your Spring RestTemplate
s with RestClientTest
, using spring-test (8 mins read).
How to write integration tests using RestClientTest
with Spring Boot, for use with RestTemplate
and RestTemplateBuilder
s.
I want whatever people who stick to TDD have
I Am Devloper (@iamdevloper)Sat, 29 Jan 2022 08:47 GMT
How to Create and Unit Test Java Bean Validation Annotations (12 mins read).
A guided example through what the different type of annotation ElementType
s are, with respect to Bean Validation, and how to write unit tests for them.
Anyone thinking of / already using #Spectral for their API linting? I've written up how I've created a test harness to #TDD new API rules into our standards at https://www.jvt.me/posts/2021/12/22/spectral-jest/
Test Driven Development for Your Spectral Rules, using Jest (7 mins read).
How to write unit tests for Spectral API linting, in a test-driven development fashion.
Shift Your Testing Left with Spring Boot Controllers (5 mins read).
How to break down your tests for Spring Boot controllers, which could be used when performing Test Driven Development.
The thing that I found most valuable - and most generally underrated - from learning TDD 5 years into my career is the art of developing by making lots of small, targeted commits that each deliver an increment but leave the codebase deployable. Multiple commits per day.
Jez Humble (@jezhumble)Sun, 07 Nov 2021 17:28 GMT
I describe TDD, and practically every other software development technique as "neither necessary nor sufficient, but sometimes useful". Zealotry of TDD or any other practice is often a consequence of Dunning-Kruger; a lack of awareness of how effective other techniques can be.Post details
IMO, a snazzy rebrand at this stage would only be helpful if we could also stop people framing TDD as a silver bullet, and acknowledge that it is just one of many useful strategies that have different Value vs. Cost trade offs in different circumstances. Seems unlikely though..πDave Smith (@davidjamessmith)Mon, 27 Sep 2021 12:03 +0000
Daniel Terhorst-North (@tastapod)Mon, 27 Sep 2021 12:43 +0000
I hear some "OGs" telling devs you don't need TDD anymore after you've done it "long enough" The design feedback and safety and 20 other things TDD gives us, even the oldest practitioners we know we can't do without. I personally will never be ditching it. Don't buy it. #TDDDave Schinkel (@DaveSchinkel)Tue, 12 Jan 2021 21:13 GMT
This is a great resource I've used in the past for learning how best to approach automation testing with a website.
This is an interesting read - I'm a big fan of TDD but a few things here hold true
Why You Should Be Unit Testing Your Functional Acceptance Tests (7 mins read).
A few reasons explaining why you should be writing unit tests for your functional tests.
Revert 'Some knowledge-sharing news' (5 mins read).
The unfortunate decision to cancel my Packt training courses.
Test-Driven Chef Cookbook Development Using ChefSpec (and a sprinkling of InSpec) (39 mins read).
Using the example of deploying and running a Java JAR file as a way to show the lifecycle of a fully test-driven Chef cookbook.
Some exciting job and knowledge-sharing news (4 mins read).
Moving into Quality Engineering, publishing Chef training courses, conference speaking about Chef at OggCamp and the complex mess that is this very static website at DevOpsDays London.
Testing include_recipe
s with Chef and ChefSpec (2 mins read).
How to best test include_recipe
s within your Chef recipes, as well as how to ensure that you aren't running any dependent recipes in your tests.
You're currently viewing page 1 of 1, of 27 posts.