我使用VisualStudio2015Enterprise和Chutzpah测试我的javascript代码。我不断地得到下面的错误。
无论并行设置为1还是8,错误都是相同的。
因此,显然,“测试资源管理器”窗口没有列出该文件中描述的测试。
我不使用规范文件中的引用,它们在Chutzpah.json文件中。
有什么需要解决的问题吗?
Update:它适用于引用,但是,我转换项目的原因是我不想复制粘贴引用.
------ 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) ==========发布于 2015-09-10 02:45:57
我们在github页面上就这个问题进行了长时间的交谈。它是Visual测试适配器框架中的一个bug及其与resharper的交互的组合。如果他残废了,这个问题就消失了。我们仍在努力寻找更持久的解决方案(在Visual中修复根错误之外)。
https://stackoverflow.com/questions/32102686
复制相似问题