Browse Source

docs: add a snippet for WAT test files

master
Dominique Merle 2 years ago
parent
commit
247e5a471b
  1. 25
      script_templates/wat.test.gd

25
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
Loading…
Cancel
Save