Prepare for your Software Quality Assurance Exam. Utilize our tailored flashcards and multiple choice questions. Each question provides helpful hints and explanations. Master the content and ace your exam!

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.


A testing best practice is for the _____________ to create a unit test.

  1. developer

  2. white-box engineer

  3. black-box tester

  4. project manager

The correct answer is: developer

Creating unit tests is primarily the responsibility of the developer, as they are the ones who write the code that these tests are designed to validate. Unit tests are intended to verify that individual components of the software function as intended, and since developers have intimate knowledge of the code's implementation and logic, they are best positioned to create tests that effectively target specific functionalities. Developers use unit tests to check for edge cases, expected outcomes, and error conditions in small pieces of code, making it easier to ensure that changes do not introduce new bugs or regressions. This practice enhances code quality and facilitates maintenance over time, embodying the principles of continuous integration and test-driven development. Other roles, such as testers or project managers, may focus on different levels of testing (like integration or system testing) and assess the application from a user perspective but do not typically write unit tests themselves. This delineation of responsibility helps ensure that the testing process is robust and comprehensive, leveraging the expertise of each team member appropriately.