Acceptance tests, or as Dave Farley calls them executable specifications in code. With a sauce of Behaviour Driven Development (BDD).

I’m working through a video course by him to broaden my perspective on acceptance testing: ” Acceptance Testing: BDD From Stories to Executable Specifications”

My definition before:

Tests that verify the output of a system given a certain input, the keyword being system here. We test from the most outer layer.

An example of acceptance testing as I know it now it through for example a test package Verify, that runs the full system under test and compares text output, against an accepted version of this specific output.

I have the feeling this is not the same as I’m going to learn about in this course.

Notes

  • Quality is not something you can ‘inspect’ into a product, it needs to be built in. W. Edwards Demming is referenced.
  • Tests need to have these characteristics
    • Easy to write
    • Easy to live with
    • Defend against accidental breakages
    • Clearly express intent
  • To be able to run the tests continuously and gain confidence.
    • Efficient
    • Effective
    • Definitive to be trustworthy.
  • The goal is Executable specifications.
    • These aren’t the only tests you need.
    • The acceptance tests assert that the code does what the users want.
  • Acceptance tests are a vital part of the continuous delivery deployment pipeline.