Prepare for the APMG Agile Foundation Exam. Access flashcards and multiple-choice questions with hints and explanations. Master your exam content!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which testing concept emphasizes developing the test before the solution?

  1. Testing integrated throughout

  2. Prioritised testing

  3. Test-Driven Development

  4. Independent testing

The correct answer is: Test-Driven Development

The concept that emphasizes developing the test before the solution is known as Test-Driven Development (TDD). In TDD, the process starts with writing a test for a specific feature or functionality that is required. This test is then run to ensure that it fails initially since the implementation does not exist yet. Following this, developers write the minimum amount of code necessary to make the test pass and refactor the code as needed while ensuring that all tests continue to pass. This approach allows developers to clarify requirements ahead of time, ensuring that the focus is on creating a solution that meets those requirements effectively. TDD facilitates better design decisions and helps to reduce bugs, as developers continuously test new code against existing tests, fostering a more reliable and maintainable codebase. The other concepts, while valuable, do not specifically involve the practice of writing tests prior to coding. For instance, testing integrated throughout emphasizes continual testing during the development process, and prioritised testing focuses on determining which tests should be executed first based on risk or value. Independent testing refers to testing conducted by individuals or teams who are not directly involved in the development of the product, ensuring objectivity but not necessarily preceding development with test creation.