Mindulle Garden
Search
Search
Search
Light mode
Dark mode
Folder: Develop/_commons/fruit/Testing/javascript/1-The-Test-Anatomy
13 items under this folder.
Apr 11, 2025
1-1 Include 3 parts in each test name
Apr 11, 2025
1-10 Dont catch errors expect them
Apr 11, 2025
1-11 Tag your tests
Apr 11, 2025
1-12 Categorize tests under at least 2 levels
Apr 11, 2025
1-13 Other generic good testing hygiene
Apr 11, 2025
1-2 Structure tests by the AAA pattern
Apr 11, 2025
1-3 Describe expectations in a product language use BDD-style assertions
Apr 11, 2025
1-4 Stick to black-box testing Test only public methods
Apr 11, 2025
1-5 Choose the right test doubles Avoid mocks in favor of stubs and spies
Apr 11, 2025
1-6 Dont foo use realistic input data
Apr 11, 2025
1-7 Test many input combinations using Property-based testing
Apr 11, 2025
1-8 If needed use only short inline snapshots
Apr 11, 2025
1-9 Copy code but only whats neccessary