Demystifying Jest Async Testing Patterns
A guide to common pitfalls and best practices for testing asynchronous code using the Jest framework in JavaScript.
A guide to common pitfalls and best practices for testing asynchronous code using the Jest framework in JavaScript.
Explores JUnit 5's dynamic tests feature, which allows creating test cases at runtime from parameters, data sources, or lambdas.
A guide to writing parameterized tests in JUnit 5, covering setup, dependencies, and basic usage with examples.
The author argues against using shallow rendering for React component testing, explaining its pitfalls and advocating for better alternatives.
A guide on achieving test isolation in React components to improve test reliability and prevent shared mutable state issues.
A developer's enthusiastic review of Jest's developer experience, highlighting its visual diffs, flexible conventions, and friendly CLI.
A developer shares key reasons to love the Jest testing framework, highlighting its zero-config setup, built-in features, and extensibility.
Introducing ngx-testing-library, an Angular adapter for the DOM Testing Library approach, enabling tests focused on user behavior over implementation details.
Explores software engineering as programming integrated over time and with other programmers, using Go's design decisions as examples.
A guide to writing unit tests for AWS Chalice applications using local mode and pytest.
A guide to writing unit tests in ASP.NET Core to automatically verify that security attributes like AuthorizeAttribute are applied to controllers and actions.
A guide to testing code that uses randomness or time by using dependency injection to make tests deterministic.
A developer argues for the benefits of 100% unit test coverage, addressing common counterarguments and emphasizing testable code design.
A guide to unit testing ILogger in ASP.NET Core, covering the challenge of mocking extension methods and providing practical solutions.
An explanation of JavaScript mocking using a thumb war game example to test a non-deterministic function.
A practical guide to implementing Test Driven Development (TDD) by building a message service with .NET, XUnit, and Moq.
Explains three methods for unit testing C# code that uses HttpClient, including wrapping it with an interface for mocking.
An introduction to Test Driven Development (TDD), explaining its core principles, the Red-Green-Refactor cycle, and the author's personal experience with it.
A guide explaining what JavaScript tests are by building a simple testing framework from scratch for pure functions.
A developer's experience using xUnit Roslyn Analyzers to improve unit test quality and fix warnings during a Visual Studio upgrade.