As mentioned briefly in Section 13 the approach to testing for the XP version

As mentioned briefly in section 13 the approach to

This preview shows page 54 - 56 out of 517 pages.

As mentioned briefly in Section 1.3 , the approach to testing for the XP version of Agile is to write the tests before you write the code. You then write the minimum code you need to pass the test, which ensures that your code is always tested and reduces the chances of writing code that will be later discarded. XP splits this test-first philosophy into two parts, depending on the level of the testing. For system, acceptance, and integration tests, XP uses Behavior-Driven Design ( BDD ), which is the topic of Chapter 7 . For unit and module tests, XP uses Test-Driven Development ( TDD ), which is the topic of Chapter 8 . Summary: Testing reduces the risks of errors in designs. In its many forms, testing helps verify that software meets the specification and validates that the design does what the customer wants. Attacking the infeasibility of exhaustive testing, we divide in order to conquer by focusing on unit testing , module testing , integration testing , and full system testing or acceptance testing . Each
Image of page 54
higher-level test delegates more detailed testing to lower levels. Agile attacks testing by writing the tests before writing the code, using either Behavior Driven Design or Test Driven Design , depending on the level of the test. Self-Check 1.8.1. While all of the following help with verification, which form of testing is most likely to help with validation: Unit, Module, Integration, or Acceptance? Validation is concerned with doing what the customer really wants versus whether code met the specification, so acceptance testing is most likely to point out the difference between doing the thing right and doing the right thing. ELABORATION: Testing: Plan-and-Document vs. Agile lifecycles For the Waterfall development process, testing happens after each phase is complete and in a final verification phase that includes acceptance tests. For Spiral, it happens on each iteration, which can last one or two years. Assurance for the XP version of Agile comes from test-driven development, in that the tests are written before the code when coding from scratch. When enhancing existing code, test-driven design means writing the tests before writing the enhancements. The amount of testing depends on whether you are enhancing beautiful code or legacy code, with the latter needing a lot more. After this review of quality assurance, let’s see how to make developers productive. 1.9 Productivity: Conciseness, Synthesis, Reuse, and Tools Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves. Alan Kay, ACM Queue, 2005 Moore’s Law meant hardware resources have doubled every 18 months for nearly 50 years. These faster computers with much larger memories could run much larger programs. To build bigger applications that could take advantage of the more powerful computers, software engineers needed to improve their productivity.
Image of page 55
Image of page 56

You've reached the end of your free preview.

Want to read all 517 pages?

  • Spring '19
  • Dr.Marcos

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors