Code Coverage Is A Broken Metric
Argues that code coverage is a flawed metric for software quality, comparing it to IQ tests, and demonstrates its limitations with examples.
Argues that code coverage is a flawed metric for software quality, comparing it to IQ tests, and demonstrates its limitations with examples.
A guide to writing unit tests that ensure ASP.NET MVC action methods have the ValidateAntiForgeryToken attribute, with tips for the ReSharper/Rider test runner.
Introduces covrpage, an R package for generating detailed unit test summary reports to build trust and show testing completeness in R packages.
Explains the different types of test doubles (dummies, fakes, stubs, spies) in Swift for unit testing, with code examples.
A guide to improving Swift code maintainability and testability by separating decision logic from action logic using the type system.
Explores why skilled developers write poor unit tests by misapplying production code principles, arguing test code should prioritize clarity over abstraction.
A guide to removing code duplication in Swift unit tests by creating reusable helper functions, improving test suite maintainability.
A guide to essential R packages for setting up, running, and assessing unit tests in R package development, focusing on testthat and related tools.
Explains how to use test fixtures in Swift to simplify unit test setup, making code cleaner and more focused.
An article explaining the fundamentals of software testing, from basic assertions to advanced frameworks, and how to build your own testing tools.
Explores common developer struggles with writing and maintaining tests, and offers practical advice to overcome these challenges.
A tutorial on unit testing a Vue.js component using Vue Test Utils and Jest, covering setup, best practices, and test implementation.
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.