#testing
Posts tagged with “testing”.
23 posts
CI/CD Pipelines: A Practical Introduction
Continuous integration and delivery automate the path from commit to production. Learn the stages, the gates, and the pitfalls.
Code Coverage: What It Measures and What It Misses
Coverage shows which lines the tests execute, not whether they assert anything. Learn the metrics, the traps, and how to use it well.
Code Coverage Myths: What the Number Really Tells You
Coverage measures which lines ran, not whether they were verified. Learn what it is good for, what it hides, and how to use it sensibly.
The Dependency Inversion Principle Explained
Dependency inversion says high-level policy should not depend on low-level detail. Learn what that means in practice and why it makes code testable.
End-to-End Testing: A Practical Guide
End-to-end tests cover the critical user journeys. Learn the selectors, the flakiness fixes, and how to keep the suite small and reliable.
Fixing Flaky Tests: Causes and Cures
A flaky test passes and fails without code changes. Learn the common causes, how to find them, and how to fix them properly.
Integration vs Unit Tests: What Each One Catches
Unit tests isolate one piece; integration tests verify pieces work together. Learn the trade-offs and how to balance the two.
Mocking and Stubbing: Test Doubles Explained
Mocks, stubs, fakes and spies are different test doubles. Learn what each is for, when to use them, and why over-mocking makes tests brittle.
Penetration Testing Basics: What It Is and How to Scope It
A pen test finds a flaw before an attacker does. Learn the scope, the rules of engagement, the phases, and the report.
Playwright Locators: Find Buttons Without Brittle CSS
Use Playwright role and label locators, understand strict matches and auto-waiting, and test a small form without fixed sleeps or fragile selectors.
Property-Based Testing: Testing Rules, Not Examples
Property-based tests assert invariants that hold for all inputs, and the framework generates the cases. Learn how it finds bugs example tests miss.
Pure Functions and Side Effects Explained
A pure function returns the same output for the same input and changes nothing outside itself. Learn why that matters and how to manage side effects.
pytest Parametrize: Test More Cases With Less Code
Learn pytest parametrization with readable cases, boundary checks, and clear failures. Build a small test table without hiding the behavior being tested.
Refactoring Basics: Improving Code Without Breaking It
Refactoring changes code structure without changing behaviour. Learn the core techniques, how to stay safe, and when to refactor.
Regression Testing: Making Sure Bugs Stay Fixed
Regression tests guard against old bugs returning. Learn how to write them, what to cover, and how to keep the suite from growing forever.
Test Data Management: Fixtures, Factories and Fakes
Test data is the hidden cost of a test suite. Learn factories, fixtures, seeding, and how to keep tests independent and fast.
Test-Driven Development: A Practical Introduction
TDD is a short red-green-refactor cycle that shapes design as much as it verifies code. Learn the loop, the benefits, and the common objections.
Unit Testing Basics: What to Test and How
Unit tests verify one piece of behaviour in isolation. Learn what makes a good test, the arrange-act-assert structure, and common mistakes.
Evaluating AI Outputs: A Practical Framework
A practical framework for evaluating LLM outputs: golden sets, programmatic checks, LLM-as-judge with rubrics, agreement metrics, and evals in CI.
Testing Compose UI: Practical Strategies
How to test Jetpack Compose screens that do not flake — semantics, state hoisting, synchronization with the v2 test APIs, and where screenshot tests fit.
Debugging Strategies That Actually Work
A hypothesis-driven approach to debugging: reproduce reliably, localize with bisection, instrument with intent, fix root causes, and prevent recurrence.
Why Your Tests Are Slow (And How to Fix Them)
A practical guide to diagnosing slow test suites: startup costs, database fixtures, sleeps, e2e scope, parallelism, and the budgets that keep suites fast.
Dependency Injection Without the Framework
Dependency injection is a practice, not a container. How constructor injection, composition roots, and manual wiring give you the benefits without the indirection.