After some more experimentation I went with his:
    
    
    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
              exec r"nim c -r " & file
    

Reply via email to