Why should you trade? What comparative advantage says about outsourcing QA
Specialization can raise total output even when one side is better at everything. Here is how that rule applies to outsourcing QA, and where it stops helping.
Imagine a software developer who writes excellent code. The same developer can also test the software, write marketing copy, answer support tickets, and handle admin work. Given enough time, they could do all of it reasonably well.
That does not mean they should. Every hour spent on one task is an hour not spent on another. An afternoon of manual testing can push an important product improvement back by a week. The same is true for a company that keeps every responsibility inside its own team.
Economists have a rule for deciding what to keep and what to hand to someone else. This article explains that rule, shows how it applies to outsourcing QA, and covers the places where it stops helping.
Doing everything yourself has a cost
We usually count cost in money. A company that hires an outside provider pays a fee, so handling the same task internally can look free.
Economists count another cost, called opportunity cost: what you give up to get something else. In textbook examples it is measured in the other goods you could have produced at the same time. In one standard example, described in the next section, the United States gives up 10 gallons of maple syrup for every computer it builds.
Take an engineer who can spend five hours on a new feature or five hours on manual tests. Both are useful, and choosing one delays the other. So the question goes beyond whether the engineer is able to test.
It is whether testing is the best use of that engineer's time.
A company can be fully able to do a task in-house and still gain by getting it elsewhere.
Comparative advantage depends on opportunity cost
The idea behind this is comparative advantage: the ability to produce something at a lower opportunity cost than another producer. It differs from absolute advantage, which is the ability to produce something using fewer inputs.
The standard example comes from economics lecture slides titled Interdependence and the Gains from Trade (Chapter 3), which we call the Chapter 3 slides from here on. It gives two countries 10,000 hours of labor a month each. The United States needs 50 hours to build a computer and 5 hours to tap a gallon of maple syrup. Canada needs 100 hours and 2.5 hours. For the United States a computer costs 10 gallons of syrup, and for Canada it costs 40.
If each country splits its labor evenly, the United States produces 100 computers and 1,000 gallons, and Canada produces 50 computers and 2,000 gallons. If the United States builds only computers, Canada taps only syrup, and they share the output, each ends up with 100 computers and 2,000 gallons. Neither could reach that point alone, and no one worked an extra hour.
The Chapter 3 slides make one more point that matters for the rest of this article. A country can be better at producing everything and still gain from trade, and the same logic applies to individual producers such as a farmer and a rancher. Thomas Fellmann's lecture slides on the same topic, from the University of Hohenheim, work through that farmer and rancher example in numbers. The rancher is faster at both meat and potatoes, and both still end up with more by specializing. The gain comes from the difference in opportunity costs.
These results come from simple models with one input, labor. In his lecture slides Comparative Advantage and Gains from Trade: Two Instructive Numerical Examples, Oscar Volij gives a numerical example with two inputs in which each country has a comparative advantage in one good and trade still brings no gain. That is a reason to use comparative advantage for thinking about trade-offs rather than as a promise of gain in every case.
A developer and a QA specialist
The numbers here are ours, made up for illustration. Alex is a developer who needs 2 hours for a development task and 3 hours for a testing task. Taylor is a QA specialist who needs 6 hours for the development task and 4 hours for the testing task. Alex is faster at both.
Look at opportunity cost instead.
- Development. When Alex does one development task, Alex gives up two thirds of a testing task. When Taylor does one, Taylor gives up one and a half testing tasks. So Alex has the comparative advantage in development.
- Testing. One test costs Taylor two thirds of a development task and costs Alex one and a half, so Taylor has the comparative advantage in testing.
Suppose each has 12 hours. If both split their time evenly, they finish 4 development tasks and 3.5 testing tasks. If Taylor tests for all 12 hours and Alex covers the remaining half of the test in 1.5 hours and spends the rest on development, they finish 5.25 development tasks and the same 3.5 tests.
None of this means developers should never test or QA specialists should never write code. Effective teams need shared understanding and constant feedback. The point is how limited time and expertise get allocated.
From countries to companies
Comparative advantage was developed for countries, and the Chapter 3 slides apply it to individual producers such as a farmer and a rancher. Applying it to a company deciding where to test is our extension. The theory that addresses that decision directly is transaction cost economics.
In his 2008 paper, Oliver Williamson describes outsourcing as a make-or-buy choice. His main point is that the best choice depends on the transaction. Generic work suits a simple market exchange. As a relationship comes to depend on investments tied to one buyer and one supplier, the efficient arrangement moves toward longer contracts with safeguards and, in the end, toward doing the work in-house.
Williamson also warns that outsourcing is not a cure-all. He cites a Deloitte Consulting survey of 25 firms, reported by Steven Tadelis in 2007, in which unexpected complexity and friction pushed total costs above expectations, and one quarter of the outsourced transactions were brought back in-house.
Williamson does not discuss software testing. Onboarding an outside team, explaining requirements, coordinating communication, protecting sensitive data, and reviewing deliverables are our examples of the coordination costs his framework points to. Read this way, an outside QA team pays off when the coordination it adds costs less than the developer time it frees. That makes how well a provider fits into a team's existing process, and how little onboarding and communication it needs, part of the case for or against outsourcing testing.
What support exists for independent testing
Independent Verification and Validation (IV&V) is the closest established idea. In a 2015 white paper, K.L. Scott and Associates describe IV&V as evaluation of a team's work by a separate party that is financially, technically, and managerially independent, applied from planning and requirements through testing and deployment readiness. The paper argues that independence gives an unbiased view and another set of eyes on the project.
Two cautions apply. The paper comes from a firm that sells IV&V services, and it presents no data. It also covers IT projects broadly and does not compare independent and in-house testing. We use it to describe the concept, not as proof that it works.
Our own reasoning goes one step further. Developers know how a feature is meant to work, which can make some problems harder for them to see, and an independent tester approaches the same feature without that assumption. None of the sources here measure this.
On the research side, a 2016 study by Vahid Garousi and Mika Mäntylä mapped 101 reviews of software testing research published between 1994 and 2015. It found none on internal versus independent test teams, and the authors name the role of independence in software testing as a topic worth reviewing. The study is dated, and its authors note that their search did not capture every related topic, so newer evidence may exist.
We read this as a sign that the case for independent testing rests more on reasoning and practice than on measured results.
Questions to ask before outsourcing testing
Outsourcing is not the right choice for every company or every task. These questions follow from the ideas above.
- Opportunity cost. What valuable work could the internal team finish if some testing moved outside?
- Specialized expertise. Does the provider bring skills, tools, or experience that would be slow or expensive to build in-house?
- Coordination cost. How much time will onboarding, communication, and review take, now and later?
- Product knowledge. Can an outside team learn the product well enough to test it? The more the work depends on knowledge specific to your product, the harder it is to hand off, which follows Williamson's logic.
For some tasks the internal team is the better choice, and for others an outside specialist is. A mix of internal testing and independent QA support is also an option.
What the sources support
Comparative advantage shows that specialization can increase total output, even when one party is better at everything, as long as opportunity costs differ and the terms of exchange suit both sides. The sources do not show that this holds for outsourcing QA. Williamson's work shows that coordination costs can cancel the gain, and the research on independent testing is thin. The points above that go beyond what the sources report are our own reading.
A practical first step is to list the testing tasks your developers do today, note what they would build in those hours, and compare that with the cost of onboarding and managing an outside team. That gives a team numbers from its own product.
At GetQA, we see independent software testing as one way to put this into practice. We bring focused QA expertise into the development process so that teams can evaluate product quality while their engineers stay focused on engineering priorities.
References
- Interdependence and the Gains from Trade (Chapter 3). Lecture slides, cited in the text as the Chapter 3 slides.
- Fellmann, T. Interdependence and the Gains from Trade. Lecture slides, Agricultural and Food Policy, University of Hohenheim.
- Volij, O. Comparative Advantage and Gains from Trade: Two Instructive Numerical Examples. Lecture slides.
- Williamson, O. E. (2008). Outsourcing: Transaction Cost Economics and Supply Chain Management. Journal of Supply Chain Management, 44(2), 5–16.
- Scott, K. L. (2015, November). Independent Verification and Validation: An IT Insurance Policy that's Worth Its Weight in Gold. K.L. Scott and Associates LLC.
- Garousi, V., & Mäntylä, M. V. (2016). A systematic literature review of literature reviews in software testing. Information and Software Technology, 80, 195–216.
