TIL: Subtests in pytest 9.0.0+
Explores the new subtests feature in pytest 9.0.0, comparing it to parametrized tests for performance and flexibility.
Explores the new subtests feature in pytest 9.0.0, comparing it to parametrized tests for performance and flexibility.
Explains structure-cementing tests and how a Test DSL can decouple tests from implementation details, making them resilient to structural changes.
Explains structure-cementing tests that hinder code refactoring and introduces a TestDsl approach to write flexible, maintainable tests.
A guide to creating an auto-mocking tool for iOS development to save time on writing repetitive test code.
Explores challenges and solutions for testing asynchronous Swift code, focusing on avoiding random failures due to concurrency issues in Swift 6.
A guide on using Zig's unit testing features to add tests to an existing C application, using the uStreamer video streaming utility as a real-world example.
Announcing luatest, a new, fast Lua test runner inspired by pytest, offering significant speed improvements over existing options.
Building a SaaS product: adding an Account model and creating a background job to send journal prompt emails with full unit testing.
A tutorial on using React Testing Library to test React components from a user's perspective, covering setup with Jest.
A guide to testing custom Kafka Connect source connectors, covering unit and integration testing strategies with code examples.
A developer adds custom form validation in Django to prevent duplicate student enrollments and improves empty state templates.
A tutorial on using Jest to test class methods, including spying on instances and prototypes to verify method calls.
A developer stream recap fixing task completion date bugs and adding student grade data to a Django SaaS app using test-driven development.
A developer documents project setup, fixes a course scheduling bug, and starts building a new student reports section in a Django application.
A discussion on why there's no single correct way to write tests, challenging the dogma around unit testing and TDD.
A developer builds a student enrollment form using Python and Django, focusing on context data, Tailwind CSS styling, and unit testing.
An in-depth technical look at how the Mocha test runner works, from parsing to execution, based on the author's experience on the core team.
A developer builds a Django CreateView for adding courses, reusing forms and templates while following a test-driven approach.
A practical guide to Test-Driven Development (TDD), explaining the red-green-refactor cycle and when it's most beneficial to use.
Learn how to automatically run Python unit tests on every commit and pull request using GitHub Actions.