Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Testing Guidelines
- ## Test Only Public API
- Testing internal implementation leads to fragile tests that break often for no good reason.
- ## Use Arrange, Act, Assert
- Each test should test a single situation, and have three parts.
- - __Arrange__: Preparing
- - __Act__: Triggering the function being tested
- - __Assert__: Match actual outcome with expected one
- ## Naming Tests
- Test name has three parts:
- - Method Name
- - Condition
- - Expected Outcome
- Use `test__METHOD__TESTED_CONDITION__EXPECTED_OUTCOME`.
Add Comment
Please, Sign In to add comment