Indirect inputs and outputs are essential to understanding the different kinds of test doubles. This concept helps to determine when to use a dummy or stub, and when to use a spy or mock.

You can read more in the following article:
https://principal-it.eu/2020/04/indirect-inputs-and-outputs

#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign

#UnitTests? #IntegrationTests? #EndToEndTests? How do you test your #PWA and #backend? Join us at #GLUG, the Greater #Lansing User Group for "Testing Each Part of a TypeScript app" happening in #Lansing starting soon. https://www.meetup.com/glugnet/events/308564229 slides: https://robrich.org/slides/web-test-all-the-things/ code: https://github.com/robrich/web-test-all-the-things
Testing Each Layer of a Modern TypeScript App with Rob Richardson, Thu, May 28, 2026, 6:00 PM | Meetup

Unit tests? Integration tests? Mocks? Stubs? Fakes? How does this apply to the web? Let's look at all the ways you can test a web app and demo all the tools you'd use. We'l

Meetup

When you hunt a bug, it can be incredibly satisfying to finally *write that failing test case* reproducing the bug in the unit tests.
After that, fixing is often a minor detail.

#cpp #cplusplus #unittests

If the file containing the #unittests is only about two-thirds the size of the main implementation file, does that mean I'm not testing enough? ๐Ÿ˜…

One of the beautiful things about Sublime Mergeยน (and git/diffs) is that you can see exactly what has changed in complex expected values in tests to ensure that youโ€™re updating the tests without overlooking regressions.

(This is from the Markdown page loader tests in Kittenยฒ, as Iโ€™m refactoring to implement the upcoming breaking change in the stateful components APIยณ as it affects the generated code for stateful layout components in Markdown pages.)

ยน Which I always have running, full-screen on its own monitor.
ยฒ https://kitten.small-web.org
ยณ Currently experimental and undocumented but that should change once this breaking change is implemented.

#git #diff #unitTests #tape #SublimeMerge #Kitten #SmallWeb #web #dev #developerExperience

๐“๐จ๐๐š๐ฒ, ๐€๐ฉ๐ซ๐ข๐ฅ 27, is the last day to secure your spot at the ๐ž๐š๐ซ๐ฅ๐ฒ-๐›๐ข๐ซ๐ ๐ซ๐š๐ญ๐ž for my workshop ๐–๐ž๐ฅ๐ฅ-๐๐š๐ฅ๐š๐ง๐œ๐ž๐ ๐“๐ž๐ฌ๐ญ-๐ƒ๐ซ๐ข๐ฏ๐ž๐ง ๐ƒ๐ž๐ฏ๐ž๐ฅ๐จ๐ฉ๐ฆ๐ž๐ง๐ญ. Join us on ๐Œ๐š๐ฒ 21-22, 2026 at ๐“๐ก๐ž ๐๐ซ๐š๐ข๐ง ๐„๐ฆ๐›๐š๐ฌ๐ฌ๐ฒ ๐ข๐ง ๐€๐ง๐ญ๐ฐ๐ž๐ซ๐ฉ .

Donโ€™t miss this final chance to invest in your skills at a reduced price.

๐Ÿ”— ๐’๐ž๐œ๐ฎ๐ซ๐ž ๐ฒ๐จ๐ฎ๐ซ ๐ฌ๐ฉ๐จ๐ญ ๐ง๐จ๐ฐ.

For more information: https://principal-it.eu/training/well-balanced-test-driven-development.html

#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign

Letting the implementation details of the Subject Under Test seep into your test code quickly becomes problematic. It harms readability, forcing readers to decipher the testโ€™s behavior, sometimes even debug it, just to understand whatโ€™s happening. Tests should be simple and easy to understand! Thatโ€™s why itโ€™s crucial to keep the domain knowledge in the production code, and out of your tests.

https://principal-it.eu/2020/09/prevent-domain-knowledge-from-sneaking-into-solitary-tests/

#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign

Due to popular demand, Iโ€™ve extended the early-bird discount ๐ฎ๐ง๐ญ๐ข๐ฅ ๐Œ๐จ๐ง๐๐š๐ฒ, ๐€๐ฉ๐ซ๐ข๐ฅ 27! Donโ€™t miss this opportunity to invest in your skills at a reduced rate.

๐Ÿ”— ๐’๐ž๐œ๐ฎ๐ซ๐ž ๐ฒ๐จ๐ฎ๐ซ ๐ฌ๐ฉ๐จ๐ญ ๐ญ๐จ๐๐š๐ฒ and learn how to build tests that support your development process (see link in the comments)

#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign

(2/2)

Today, I have written 15 #UnitTests, and fixed a bunch of bugs that they'd revealed. This means that my kernel is now crashing later in the start-up process than it was this morning. Victory!

#OSDev

Struggling with brittle tests that slow you down? Join my ๐–๐ž๐ฅ๐ฅ-๐๐š๐ฅ๐š๐ง๐œ๐ž๐ ๐“๐ž๐ฌ๐ญ-๐ƒ๐ซ๐ข๐ฏ๐ž๐ง ๐ƒ๐ž๐ฏ๐ž๐ฅ๐จ๐ฉ๐ฆ๐ž๐ง๐ญworkshop on ๐Œ๐š๐ฒ 21-22, 2026 in Antwerp! Learn how to write reliable, maintainable tests that help you think about software design and prevent defects. Early -bird tickets are available until ๐€๐ฉ๐ซ๐ข๐ฅ 19.

For more information: https://principal-it.eu/training/well-balanced-test-driven-development.html

#tdd #unittests #softwaredesign #softwarecrafting #xp