javascript-Chutzpah异常且未刷新测试列表
作者:互联网
我将Visual Studio 2015 Enterprise与Chutzpah一起使用来测试我的JavaScript代码.我不断收到以下错误.
并行设置为1还是8无关紧要.错误是相同的.
结果,显然,“测试浏览器”窗口未列出该文件中描述的测试.
我不在规范文件中使用引用,它们在Chutzpah.json文件中.
有什么需要解决的方法吗?
更新:它可以很好地与引用配合使用,但是,我转换项目的原因是我不想复制粘贴引用…
------ Discover test started ------
Error: System.IO.IOException: The process cannot access the file '..path...\_Chutzpah.f96875093f45a5e0d78d2e58faf97799.test.html' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at System.IO.File.WriteAllText(String path, String contents)
at Chutzpah.Wrappers.FileSystemWrapper.Save(String path, String contents) in c:\Dev\chutzpah\Chutzpah\Wrappers\FileSystemWrapper.cs:line 172
at Chutzpah.TestHarnessBuilder.CreateTestHarness(TestContext testContext, TestOptions options) in c:\Dev\chutzpah\Chutzpah\TestHarnessBuilder.cs:line 74
at Chutzpah.TestRunner.<>c__DisplayClassc.<ExecuteTestContexts>b__b(TestContext testContext) in c:\Dev\chutzpah\Chutzpah\TestRunner.cs:line 291
While Running:...path...\\oauthauthenticationdataservice.spec.js
Error: Error opening ...path.../_Chutzpah.f96875093f45a5e0d78d2e58faf97799.test.html: No such file or directory
While Running:...path...\oauthauthenticationdataservice.spec.js
Error: Unknown error occurred when executing test file. Received exit code of 2
While Running:...path...\oauthauthenticationdataservice.spec.js
========== Discover test finished: 0 found (0:00:01.3607047) ==========
解决方法:
关于github page,我们就此问题进行了长时间的交谈.它是Visual Studio测试适配器框架中的错误及其与重新共享工具的交互的组合.如果他禁用了重新磨牙,问题就消失了.我们仍在努力寻找更永久的解决方案(Visual Studio中已修复了根本的错误)
标签:unit-testing,javascript,chutzpah 来源: https://codeday.me/bug/20191028/1948738.html