gpt4 book ai didi

javascript - Chutzpah 异常且不刷新测试列表

转载 作者:行者123 更新时间:2023-11-29 10:11:47 25 4
gpt4 key购买 nike

我使用带有 Chutzpah 的 Visual Studio 2015 Enterprise 来测试我的 javascript 代码。我不断收到以下错误。

parallel设置成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 测试适配器框架中的一个错误及其与 resharper 交互的组合。如果他禁用重新锐化,问题就消失了。我们仍在努力寻找更永久的解决方案(在 Visual Studio 中修复的根错误之外)

关于javascript - Chutzpah 异常且不刷新测试列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32102686/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com