Adding log.gd
This commit is contained in:
parent
eb32d6614e
commit
4522259397
547 changed files with 46844 additions and 0 deletions
29
addons/gdUnit4/test/GdUnitScanTestSuiteTest.gd
Normal file
29
addons/gdUnit4/test/GdUnitScanTestSuiteTest.gd
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# This test verifys only the scanner functionallity
|
||||
# to find all given tests by pattern 'func test_<testname>():'
|
||||
extends GdUnitTestSuite
|
||||
|
||||
|
||||
func test_example():
|
||||
assert_that("This is a example message").has_length(25)
|
||||
assert_that("This is a example message").starts_with("This is a ex")
|
||||
|
||||
|
||||
func test_b():
|
||||
pass
|
||||
|
||||
|
||||
# test name starts with same name e.g. test_b vs test_b2
|
||||
func test_b2():
|
||||
pass
|
||||
|
||||
|
||||
# test scanning success with invalid formatting
|
||||
func test_b21 ( ) :
|
||||
pass
|
||||
|
||||
|
||||
# finally verify all tests are found
|
||||
func after():
|
||||
assert_array(get_children())\
|
||||
.extract("get_name")\
|
||||
.contains_exactly(["test_example", "test_b", "test_b2", "test_b21"])
|
||||
Loading…
Add table
Add a link
Reference in a new issue