Why Human Programmers Hate Testing But AIs Love It

In my opinion, the best use for AI-powered programming tools like GitHub Copilot is writing automated software tests.

Today, we’ll explore why AI should handle unit & end-to-end (e2e) testing, so developers can focus on crafting accessible, stunning user experiences.

First, we’ll look at AI-generated examples using Jest + React Testing Library for unit testing and Playwright Testing Library for end-to-end testing.

Then, we’ll discuss the psychology of testing to help understand why writing tests is such a point of contention.

Lastly, we’ll wrap up with some key takeaways about how you can best incorporate testing into your day-to-day work as a software engineer.

Accessible Unit Tests: Jest and React Testing Library

While writing complex components in React, it’s crucial to ensure their accessibility. Unit testing helps identify potential issues early.

Read More