Automated testing means that tests are written separately, in addition to the code. They run our functions in various ways and compare results with the expected.
Let’s start with a technique named Behavior Driven Development or, in short, BDD. BDD is three things in one: tests AND documentation AND examples. To understand BDD, we’ll examine a practical case of development.
we can imagine what the function should do and describe it. Such description is called a specification
the development is iterative. We write the spec, implement it, make sure tests pass, then write more tests, make sure they work etc. At the end we have both a working implementation and tests for it.
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.