How to choose what to refactor
A guide on applying the 'focusing question' technique to identify the most valuable code refactoring tasks that will simplify current project work.
A guide on applying the 'focusing question' technique to identify the most valuable code refactoring tasks that will simplify current project work.
Final part of a series on refactoring a legacy Python library, focusing on safe code rehabilitation techniques and tooling.
Explores the benefits of Test-Driven Development (TDD), including preventing false positives, improving design, and providing fast feedback.
A guide on integrating the Jest testing framework into an Angular application and library, replacing the default Karma runner.
A guide to common pitfalls and best practices for testing asynchronous code using the Jest framework in JavaScript.
A guide to writing parameterized tests in JUnit 5, covering setup, dependencies, and basic usage with examples.
Explores JUnit 5's dynamic tests feature, which allows creating test cases at runtime from parameters, data sources, or lambdas.
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.
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 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.