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
{{ message }}
Repository navigation
Minimize use of setup/teardown hooks (e.g. before, beforeEach, after, afterEach) #746
Keeping the setup for each unit test in the individual test makes it easier to understand what behaviour it is testing. A test should be readable in isolation, without cross-referencing elaborate setup steps.
It should be easy for the reader to understand which setup steps the test relies upon.
changed the title [-]Minimize the use of setup/teardown hooks (e.g. , , , )[/-][+]Go through tests and minimize use of setup/teardown hooks (e.g. `before`, `beforeEach`, `after`, `afterEach`)[/+]on Mar 23, 2022
changed the title [-]Go through tests and minimize use of setup/teardown hooks (e.g. `before`, `beforeEach`, `after`, `afterEach`)[/-][+]Minimize use of setup/teardown hooks (e.g. `before`, `beforeEach`, `after`, `afterEach`)[/+]on Mar 23, 2022
Activity
[-]Minimize the use of setup/teardown hooks (e.g. , , , )[/-][+]Go through tests and minimize use of setup/teardown hooks (e.g. `before`, `beforeEach`, `after`, `afterEach`)[/+][-]Go through tests and minimize use of setup/teardown hooks (e.g. `before`, `beforeEach`, `after`, `afterEach`)[/-][+]Minimize use of setup/teardown hooks (e.g. `before`, `beforeEach`, `after`, `afterEach`)[/+]