Agile Q&A: How is Testing Incorporated into Agile Software Development?

Agile Q&A

When the topic turns to testing and Agile software development, I usually hear variations of the following two questions:

  • We usually take six weeks to do systems testing after development is over. How could we possibly develop AND test something within two weeks?
  • If developers are doing the testing, what do testers do?

This post addresses both questions in part by questioning the assumptions that underlie them.

Everyone is responsible for quality throughout your process

The first question is based on the assumption that the sole purpose of testing is to check quality after the product is built.

A better approach is to build quality into your product. To do that effectively everyone on the team needs to own quality, not just the testers.

What does everyone “owning quality” look like? To start off with, as Karen Greaves and Samantha Laing suggest in their Coach’s Guide to Agile Testing, stop thinking of testing as trying to break the product in order to find bugs. That approach leads to an adversarial relationship between the builders and checkers and does no one any favors.

Instead, think of testing as preventing bugs to get to the best product possible.

Use the three amigos concept to get people with different perspectives (business, development, testing) together to discuss the problem you are trying to solve and identify possible solutions. Have your three amigos use behavior-driven development (BDD) to identify examples in order to build a shared understanding of the problem and possible solutions.

Encourage your team to use test-driven development (TDD) to ensure they’re building the solution right. Follow that up with acceptance test-driven development (ATDD) to make sure you built the right thing.

When you seek to build quality into your product, it no longer makes sense to treat testing as a phase you do after the product is built. Testing is now an activity that occurs throughout your entire process.

One reason that system testing always takes a long time is that teams generally want to run at least some regression tests. Not only do you test the new functionality, but you also want to (or at least should) test functionality that you didn’t change just to make sure you don’t have any unintended consequences.

The more complex your product, the more regression tests you need to run. This is where automated testing comes into play. The more you can automate the tests you need to run, the quicker you can run them and identify any issues you may have inadvertently caused.

Test automation is a key aspect of TDD and ATDD. When you first write the tests and the code to make them pass, you’re confirming that you’ve built the product properly. If you automate those tests so that you can run them again and again, they then become part of your regression test allowing you to quickly tell if you changed something you didn’t intend to.

Automated tests also support safe refactoring. They provide that safety net for you to change the structure of a bit of code and know that you didn’t impact the end result provided by that code.

Automated tests are good, but that doesn’t mean you should automate everything. While you should seek to automate all of your unit tests, you don’t necessarily need to automate every acceptance test you can possibly think of, and you should automate tests through the UI only when it makes sense. A rule of thumb is to automate the tests that provide the fastest feedback.

And there are going to be some tests that you don’t want to automate at all – exploratory tests. You want to identify situations your team hasn’t identified before. You’re looking for unknown unknowns. It’s difficult to automate testing for something when you’re not sure what you’re looking for.

Testers help the team consider “what if”

So if everyone on the team tests, does that mean that testers don’t have anything to do?

Hardly.

If everyone is testing, you want to make sure they are doing it effectively. If you’re a tester, you’ll adopt the role of part-time coach and mentor helping everyone else on the team learn how to test the right way. You’re also there to provide perspective and to be one of the three amigos that always asks “what if” and encourages your teammates to ask the same question.

You can be more involved in defining what the team is building. You can work alongside the people on your team building the solution to catch those little bugs that sneak out when someone works on something by themselves. You can perform exploratory testing to identify the situations you didn’t think of initially.

Along with all of that, you’ll get the opportunity to expand your own skills into areas you may not have had the opportunity before.

We hope you found this post informative

Before you move on, please consider supporting our non-profit mission by making a donation to Agile Alliance todayThis is a community blog post. The opinions contained within belong solely to the author or authors, and may not represent the opinion or policy of Agile Alliance.

Add to Bookmarks Remove from Bookmarks
Add to Your Bookmarks Remove from Bookmarks
Picture of Kent McDonald

Kent McDonald

Kent J McDonald writes about and practices software product management. He has IT and product development experience in a variety of industries including financial services, health insurance, nonprofit, and automotive. Kent currently practices his craft for a variety of organizations and provides just in time resources for product owners and business analysts at KBP.media and Product Collective. When not writing or product managing, Kent is his family’s #ubersherpa, listens to jazz and podcasts (but not…

Recent Blog Posts

Recent Posts

Join Agile Alliance!

$5 per month (paid annually)*

*Corporate plans are also available

Your Bookmarks

No favorites to display. You must have cookies enabled to add bookmarks.

Post your comments or questions

Recent Agile Alliance Blog Posts

Discover the many benefits of membership

Your membership enables Agile Alliance to offer a wealth of first-rate resources, present renowned international events, support global community groups, and more — all geared toward helping Agile practitioners reach their full potential and deliver innovative, Agile solutions.

IMPORTANT: We have transitioned to a new membership platform. If you have not already done so, you will need to set up an account on the new platform to establish your user profile.

When you see the login screen, choose “Set up Account” and follow the prompts to create your new account. You can choose to log in using your social credentials for either Google or Linkedin (recommended), or you can set up your account using an email address.

Not yet a member? Sign up now