Chutzpah 异常且不刷新测试列表
Chutzpah exception and not refreshing test list
我正在使用 Visual Studio 2015 Enterprise with Chutzpah 来测试我的 javascript 代码。我不断收到以下错误。
不管并行设置成1还是8,错误都是一样的
因此,显然,测试浏览器 window 没有列出该文件中描述的测试。
我没有在规范文件中使用引用,它们在 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 测试适配器框架中的错误及其与 resharper 交互的组合。如果他禁用重新锐化,问题就消失了。我们仍在努力寻找更永久的解决方案(在 Visual Studio 中修复的根错误之外)
我正在使用 Visual Studio 2015 Enterprise with Chutzpah 来测试我的 javascript 代码。我不断收到以下错误。
不管并行设置成1还是8,错误都是一样的
因此,显然,测试浏览器 window 没有列出该文件中描述的测试。
我没有在规范文件中使用引用,它们在 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 测试适配器框架中的错误及其与 resharper 交互的组合。如果他禁用重新锐化,问题就消失了。我们仍在努力寻找更永久的解决方案(在 Visual Studio 中修复的根错误之外)