Chutzpah未检测到TypeScript测试

时间:2018-11-14 10:40:13

标签: typescript jasmine chutzpah

我正在尝试让chutzpah与TypeScript一起使用,但遇到两个问题: -在测试列表中未找到该测试 -我收到一个错误:Chutzpah错误:System.IO.FileNotFoundException:无法找到生成的路径..,chutzpah无法找到编译的js文件。

这是我的chutzpah.json,它位于根文件夹和解决方案树上:

Solution
-Scripts
--Folders with .ts files
-UnitTest
--.ts test files

chutzpah.json:

    {
  "Compile": {
    "Framework": "jasmine",
    "Extensions": [ ".ts" ],
    "ExtensionsWithNoOutput": [ ".d.ts" ],
    "UseSourceMaps": true,
    "Mode": "External",
    "SourceDirectory": "Scripts",
    "OutDirectory": "Scripts"
  },
  "References": [
    {
      "Path": "Scripts",
      "Includes": [ "*/*.ts" ],
      "Excludes": [ "*/*.d.ts" ]
    }
  ],
  "Tests": [
    {
      "Path": "UnitTest",
      "Includes": [ "*/*.ts" ],
      "Excludes": [ "*/*.d.ts" ]
    }
  ]
}

0 个答案:

没有答案