The True Purpose of Testing | Epic Web Dev

rw-book-cover

Metadata

  • Author: Artem Zakharchenko
  • Full Title: The True Purpose of Testing | Epic Web Dev
  • Category:#articles
  • Document Tags: testing
  • Summary: The true purpose of automated tests is to validate the intention behind the system. Tests become useful when they focus on the intention rather than the implementation. Many tests fail to fulfill their purpose because they focus on implementation details instead of validating what the code is intended to do. By treating implementation details as a means to an end and focusing on the larger intention at hand, the value of automated testing can be unlocked. It is important to always test the intention behind the system to ensure that it functions without fault.
  • URL: https://www.epicweb.dev/the-true-purpose-of-testing

Highlights

  • A test’s true purpose is tightly connected to the intention behind each test case, and can be put together as such: (View Highlight)

  • You write tests to validate the intention behind the system. (View Highlight)

  • You can only unlock the value of automated testing once you start treating implementation details as the means to an end, and focus on the larger intention at hand. Your users don’t know how the features of your app work, and neither should your tests. What the users do care about, is that whichever promises your app makes, whichever intentions it allows them to achieve, it does without fault. (View Highlight)


📂 Articles | Последнее изменение: 23.11.2024 16:34