You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Follow the Arrange, Act, Assert structure when writing unit tests.
4
+
- When writing unit tests, create individual unit tests that cover each logical branching in the code.
5
+
- For the happy path, can we have a single unit test where in the all the top level if conditions are executed? Maybe this might help with reducing the number of total unit tests created and still give same test coverage.
6
+
- For the tests for edge cases do not create separate describe blocks, keep the hierarchy flat.
7
+
- For the tests for edge cases, do not skip assertions, its still worth adding all assertions similar to the happy paths tests.
0 commit comments