diff --git a/solidity/unit_testing.md b/solidity/unit_testing.md index fdf7284..9f3c2a4 100644 --- a/solidity/unit_testing.md +++ b/solidity/unit_testing.md @@ -1,5 +1,16 @@ ## Basic Unit testing +
+ +Functions in a test file to make testing more structural: + +* `beforeEach()` - Runs before each test +* `beforeAll()` - Runs before all tests +* `afterEach()` - Runs after each test +* `afterAll()` - Runs after all tests + +
+ A generic unit testing file looks like: