There's no one right way to test your code
A discussion on why there's no single correct way to write tests, challenging the dogma around unit testing and TDD.
A discussion on why there's no single correct way to write tests, challenging the dogma around unit testing and TDD.
A developer builds a student enrollment form using Python and Django, focusing on context data, Tailwind CSS styling, and unit testing.
A guide to testing .NET Core's IOptionsMonitor, including a stub implementation and example unit tests for configuration change scenarios.
An in-depth technical look at how the Mocha test runner works, from parsing to execution, based on the author's experience on the core team.
A developer builds a Django CreateView for adding courses, reusing forms and templates while following a test-driven approach.
Explains the importance of using the *ByRole query in Testing Library for accessible, robust tests and how to find fallback queries.
A practical guide to Test-Driven Development (TDD), explaining the red-green-refactor cycle and when it's most beneficial to use.
A guide to writing unit tests for cloud infrastructure deployments using Pulumi's .NET SDK and mocking capabilities in C#.
A guide to writing unit tests for cloud infrastructure deployments using Pulumi and the F# programming language, with a focus on mocking.
Learn how to automatically run Python unit tests on every commit and pull request using GitHub Actions.
A guide on building and testing complex query strings in ASP.NET Core controller unit tests, covering encoding and multiple values.
Explains the Go 1.14 improvement where `go test -v` streams `t.Log` output in real-time, aiding debugging of long-running tests.
A developer creates a utility to automatically reboot a modem when internet drops, sharing code and logic details.
A guide offering 10 practical tips for writing clearer, more maintainable, and effective software tests, focusing on documentation and isolation.
A guide to fixing the 'not wrapped in act(...)' warning in React component tests, covering class and function components.
Explains why you should make your tests fail to ensure they are actually testing the intended functionality and not giving false confidence.
A guide to setting up integration tests in ASP.NET Core using Moq for mocking external dependencies like databases.
Explores a prototype library for unit testing Blazor components, covering its goals, how it works, and providing example code.
Explores using dynamically scoped variables in Go to improve test helper APIs, reducing boilerplate and passing of testing.T.
A developer's personal story about learning the critical importance of unit testing while refactoring a complex financial calculation library.