BessereTests/addons/besseretests/examples/example_test.gd
2024-03-28 05:37:29 +01:00

40 lines
870 B
GDScript

extends BessereTestsTest
#func before_all() -> void: ldiag("before_all() called")
#func after_all() -> void: ldiag("after_all() called")
#func before_each() -> void: ldiag("before_each() called")
#func after_each() -> void: ldiag("after_each() called")
func test_ok() -> void:
test_status = 0
test_message = "test_ok with a message"
func test_ok_nm() -> void:
test_status = 0
func test_warn() -> void:
test_status = 1
test_message = "test_warn with a message"
func test_warn_nm() -> void:
test_status = 1
func test_error() -> void:
test_status = 2
test_message = "test_error with a message"
func test_error_nm() -> void:
test_status = 2
func test_skip() -> void:
test_status = 3
test_message = "test_skip with a message"
func test_skip_nm() -> void:
test_status = 3
func test_forgot() -> void:
pass
func test_invalid() -> void:
test_status = 69