From 247e5a471becae3ddf75cb76f2b9a51dbda928b4 Mon Sep 17 00:00:00 2001 From: domi41 Date: Sat, 8 Aug 2020 18:25:05 +0200 Subject: [PATCH] docs: add a snippet for WAT test files --- script_templates/wat.test.gd | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 script_templates/wat.test.gd diff --git a/script_templates/wat.test.gd b/script_templates/wat.test.gd new file mode 100644 index 0000000..0980073 --- /dev/null +++ b/script_templates/wat.test.gd @@ -0,0 +1,25 @@ +extends WAT.Test + +func title(): + return "TEST GROUP NAME" + +func start(): + # Runs before all test related methods once + pass + +func pre(): + # Runs before each test method + pass + +func test_METHOD(): + describe("TEST DESCRIPTION") + # Create one for each test with a relevant name that MUST start with `test_` + pass + +func post(): + # Runs after each test method + pass + +func end(): + # Runs after all other test related methods once + pass