Hi all,

I have two test files test_x.nim, test_y.nim in my test directory. I am using 
this Nimscript to run my tests:
    
    
    task test, "Runs the test suite":
      configForTests()
      var dir_list = listDirs("test")
      dir_list.add("test")
      keepItIf(dir_list, it != "test/nimcache")
      for dir in dir_list:
          for file in listFiles(dir):
            var (_, _, ext) = splitFile(file)
            if ext == ".nim":
              echo "running ---- " & file
              setCommand "c", file
    

When I run $nimble test, I get the correct echo output
    
    
    running ---- test/test_x.nim
    running ---- test/test_y.nim
    

but only test_x.nim gets compiled! test_y is ignored. Any ideas as to what I'm 
doing wrong here ? 

Reply via email to