Testing & Quality
Learn how to check software at the right boundaries: from small functions to APIs and complete browser journeys. This section pairs testing concepts with examples from the languages and frameworks used across the blog.
2026
Unit Testing JavaScript with Vitest
·407 words·2 mins
JavaScript
Vitest
Testing
Unit Testing
Set up Vitest and use Arrange–Act–Assert to test pure functions without depending on a browser or network.
The Testing Pyramid: Unit, Integration, and End-to-End Tests
·1982 words·10 mins
Testing
Software Quality
Unit Testing
Integration Testing
A practical guide to the testing pyramid, with examples of what belongs in unit, integration, and end-to-end tests.
Testing React Components Through User Behavior
·370 words·2 mins
React
Testing
Accessibility
Frontend
Render a component, interact through roles and labels, and assert what a person using the interface can see.
Testing Asynchronous JavaScript and Fetch Requests
·370 words·2 mins
JavaScript
Fetch API
Async
Testing
Separate the network boundary from application logic and test each asynchronous outcome deterministically.
Run Tests and Builds with GitHub Actions
·2034 words·10 mins
GitHub Actions
CI
Testing
DevOps
Use GitHub Actions to make test results repeatable and visible before changes are merged.
pytest Basics: Tests, Fixtures, and Clear Assertions
·1984 words·10 mins
Python
pytest
Testing
Unit Testing
Write discoverable pytest functions, organize reusable state with fixtures, and make failures easy to understand.
Parameterized Tests for Algorithms with pytest
·390 words·2 mins
Python
pytest
Algorithms
Testing
Build a compact test matrix for a two-sum implementation and learn when example tests are more useful than property tests.
Mocks, Stubs, and Fakes: Choosing Test Doubles
·350 words·2 mins
Testing
Mocks
Software Design
Unit Testing
Compare stubs, mocks, fakes, and spies, then apply the smallest useful substitute in a test.
Integration Testing a Flask API with pytest
·378 words·2 mins
Python
Flask
pytest
API Testing
Configure an isolated test app, send HTTP-like requests, and check the API contract at the boundary.
End-to-End Browser Tests with Playwright
·308 words·2 mins
Playwright
End-to-End Testing
Browser Testing
Web Development
Set up a browser test, drive it like a user, and reduce flakiness by waiting for observable outcomes.