From f439f22bc2a73a11f14f300197ed4afd0706d3ce Mon Sep 17 00:00:00 2001 From: bt3gl <1130416+bt3gl@users.noreply.github.com> Date: Thu, 10 Mar 2022 19:15:25 +0000 Subject: [PATCH] Update unit_testing.md --- solidity/unit_testing.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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: