Are all tests good tests? Any test that exercises code has some value, but some tests are better than others. This page presents some best practices for writing effective tests.
- Start simple
- Organize code for testing
- Avoid testing the trivial
- Use the most specific assertion
- JavaScript and XQuery
- Minimize Dependency on the Implementation
- Minimize transformations in the test