Best practices
Much like any other piece of code, there are many ways to write tests. With experience, we notice patterns that lead to more fragile tests, or techniques to make them easier to maintain.
This section lists such patterns and techniques. Many of these may be applicable to any programming language or test framework.