我正在尝试让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" ]
}
]
}