首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Chutzpah异常而不是刷新测试列表

Chutzpah异常而不是刷新测试列表
EN

Stack Overflow用户
提问于 2015-08-19 18:10:41
回答 1查看 558关注 0票数 3

我使用VisualStudio2015Enterprise和Chutzpah测试我的javascript代码。我不断地得到下面的错误。

无论并行设置为1还是8,错误都是相同的。

因此,显然,“测试资源管理器”窗口没有列出该文件中描述的测试。

我不使用规范文件中的引用,它们在Chutzpah.json文件中。

有什么需要解决的问题吗?

Update:它适用于引用,但是,我转换项目的原因是我不想复制粘贴引用.

代码语言:javascript
复制
------ 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) ==========
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-09-10 02:45:57

我们在github页面上就这个问题进行了长时间的交谈。它是Visual测试适配器框架中的一个bug及其与resharper的交互的组合。如果他残废了,这个问题就消失了。我们仍在努力寻找更持久的解决方案(在Visual中修复根错误之外)。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32102686

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档