Giving your tests expressive names is important. Proper naming helps understand what the test verifies and how the underlying system behaves. In this post, we’ll take a look at a popular, yet inferior naming convention and see how it can be improved.
The “wrong” way groups tests together, isnt excessively verbose, and is widely accepted. The “right” way is just noisy. You can use a comment to describe the test, you dont need to write an essay in the function name.
The “wrong” way groups tests together, isnt excessively verbose, and is widely accepted. The “right” way is just noisy. You can use a comment to describe the test, you dont need to write an essay in the function name.