# Why test-driven development and pair programming are perfect companions for GitHub Copilot

DevFeed: [Why test-driven development and pair programming are perfect companions for GitHub Copilot](<https://devfeed.tech/articles/why-test-driven-development-and-pair-programming-are-perfect-companions-for-github-copilot-57280.md>)

Original publisher: [Read original article](<https://www.thoughtworks.com/insights/blog/generative-ai/tdd-and-pair-programming-the-perfect-companions-for-copilot>)

Author: Juan Infante Zumer, Carlos Cavero, Carlos Barroso

Published: 2024-07-08T00:00:00Z

Content type: article

Language: en

Sources: [Thoughtworks Insights](<https://devfeed.tech/sources/thoughtworks-insights.md>)

Topics: [GitHub Copilot](<https://devfeed.tech/topics/github-copilot.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [pair\_programming](<https://devfeed.tech/topics/pair-programming.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>), [Code quality](<https://devfeed.tech/topics/code-quality.md>), [developer-productivity](<https://devfeed.tech/topics/developer-productivity.md>), [Maintainability](<https://devfeed.tech/topics/maintainability.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-for-code](<https://devfeed.tech/tags/ai-for-code.md>), [ai-smells](<https://devfeed.tech/tags/ai-smells.md>), [boost-developer-productivity](<https://devfeed.tech/tags/boost-developer-productivity.md>), [code-completion](<https://devfeed.tech/tags/code-completion.md>), [code-quality](<https://devfeed.tech/tags/code-quality.md>), [gen-ai](<https://devfeed.tech/tags/gen-ai.md>), [github-copilot](<https://devfeed.tech/tags/github-copilot.md>), [maintainability](<https://devfeed.tech/tags/maintainability.md>), [pair-programming](<https://devfeed.tech/tags/pair-programming.md>), [pairing](<https://devfeed.tech/tags/pairing.md>), [pitfalls](<https://devfeed.tech/tags/pitfalls.md>), [tdd](<https://devfeed.tech/tags/tdd.md>), [test](<https://devfeed.tech/tags/test.md>)

## AI overview

This article examines how test-driven development and pair programming can help developers use GitHub Copilot while reducing AI-related coding pitfalls. It discusses productivity and code-quality benefits, Copilot's nondeterministic suggestions, adoption and team dynamics, and risks such as automation bias, context poisoning, and missed requirements.

## Source excerpt

Why test-driven development and pair programming are perfect companions for GitHub Copilot