How detailed should a customer acceptance test be?

后端 未结 3 1626
野的像风
野的像风 2021-02-13 01:26

Here is a test description, testing the \"Create New Widget\" use-case.

  • Confirm that you can enter a new widget into the system.

Here is anoth

3条回答
  •  没有蜡笔的小新
    2021-02-13 02:01

    I think that your acceptance tests should primarily be good path tests. Sometimes the "good" path will ensure that errors are properly handled. You should have other tests that validate your security and exercise the corner cases, but an acceptance test is more about making sure that the correct application has been built than making sure that every possible condition is handled correctly. If you have good unit tests and use best practices, then I think that the good path testing is entirely appropriate.

    For example, I wouldn't necessarily test that I don't have problems with SQL injection if I've used a technology that enforces parameterized queries or where I generate queries by hand (I don't), that the unit tests validate that injection fails. Addressing the corner cases in unit tests makes it less important to focus on them in acceptance tests. If you need to include a few as examples to the customer that your backend implementation addresses their concerns, then by all means do so, but I wouldn't test things that I know I've addressed adequately via other testing.

提交回复
热议问题