MarvinJWendt/testza

AssertDirEmpty The test will Failed when the directory does not exist

gopower opened this issue · 1 comments

func TestHello(t *testing.T) {
testza.AssertDirEmpty(t, "FolderName")
}

output:

# Running tests with Testza
## Using seed "1647841197635983500" for random operations
## System info: OS=windows | arch=amd64 | cpu=Intel(R) Core(TM) i5-8400 CPU @ 2.80GH
z | go=go1.18

--- FAIL: TestHello (0.00s)
    assertion_helper.go:273: 
        
           0| Error opening directory specified
           1| 
           2| dir:
           3| (string) (len=10) "FolderName"
        
        
    main_test.go:9: 
        
           0| The directory is not empty.
           1| 
           2| Directory:
           3| (string) (len=10) "FolderName"
        
        
FAIL

Hi @gopower, thanks for the report! The issue will be fixed in v0.3.1, which will be available in a couple of minutes.