- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我使用带有 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/
当我提供 Chutzpah.json 文件时,我无法让 Chutzpah 运行我的 typescript 测试。 我的项目是这样的: 我的 Chutzpah.json 文件如下所示: { "C
我们想使用 chutzpah(VS 扩展)通过 MSBuild(在 TFS 构建中)运行我们的 Jasmine 测试。所以我试图在本地计算机上的某个地方找到 chutzpah.console.exe(
我使用带有 Chutzpah 的 Visual Studio 2015 Enterprise 来测试我的 javascript 代码。我不断收到以下错误。 parallel设置成1还是8都没关系,报错
我已经编写了 QUnit 测试,并使用 Test Explorer 的 Chutzpah 测试适配器在 Visual Studio 2012 中运行它们。当我运行代码覆盖率时,需要某些外部依赖项(例如
我在 Visual Studio 2012、Chutzpah 3.2.1.1 和 Jasmine 2 中使用 TypeScript 1.0。 我有一个非常基本的测试,可以很好地编译,但没有通过使用 V
我一直在试图找出在 Visual Studio 中编写/运行自动 jasmine 测试的最佳方法是什么。目前,我正在将 jasmine 与 Resharper(使用 PhantomJS)一起使用,并且
相当简单——我可以通过命令行工具或其他方式使用 Chutzpah JavaScript 测试运行程序运行单个测试吗? 最佳答案 Chutzpah 将始终运行整个测试文件,而不是单个测试。我想过提供一种
我刚刚安装了 Chutzpah 来为 Javascript 运行基于 Jasmine 的单元测试。我是 Jasmine 以及 Chutzpah 和 angular 的新手。我已经为 Angular 过
我想为我的 QUnit javascript 单元测试生成一个 junit、nunit 或 mstest 报告,因为我们主要在 Visual Studio(c# MVC 服务器)中开发,我们目前正在使
如何从项目中删除 Chutzpah 以不在测试资源管理器中显示结果? 我制作了一个演示项目来学习 Chutzpah 并为 VS2013 安装了它。现在在我的另一个项目中,我不使用 Chutzpah 而
我有一个测试在浏览器中正常通过但在 Chutzpah 中失败。 这是失败的部分: var nameLowerCase = person.PersonName.toLowerCase(); var se
我的团队正在尝试将 Chutzpah 集成到 TFS 2012 构建过程中。我们使用了 this blog post作为我们的起点。 在高层次上,实际问题是构建代理上下文中的 Visual Studi
我有一些 qunit 测试设置来测试我广泛使用 requirejs 的代码。我使用 Chutzpah 来执行在 VS 中运行的测试。如果我在浏览器中运行测试而不是仅在 VS 中运行测试,则一切正常。它
我们使用 Chutzpah 测试适配器在 Visual Studio 中运行一些 QUnit javascript 测试。一切都工作正常,直到我们最近更改了 api(由 js 文件测试的 API),并
Github 上关于 Compile 配置元素的 Chutzpah 文档。 This setting lets you describe in the Chutzpah.json file how t
我尝试使用 Chutzpah + jasmine 来测试我的 AngularJS 代码。 这是我引用的文件 jasmine.js ver:1.3.1 jasmine-html.js angular.m
我已经安装了 Chutzpah 并在我的计算机上运行了几次,然后我重新启动了,当我尝试从 Visual Studio 或 中的扩展运行时出现了这种错误命令: >chutzpah.console /wa
我已经安装了 Chutzpah 并在我的计算机上运行了几次,然后我重新启动了,当我尝试从 Visual Studio 或 中的扩展运行时出现了这种错误命令: >chutzpah.console /wa
我刚刚将 Chutzpah 测试适配器扩展安装到 VS2013,并通过 VS 的测试资源管理器运行了一个简单的 Jasmine 测试。效果很好 - headless 运行测试。 然后我尝试通过 Res
我完全卡住了:这是我的目录: chutzpah.json src/ --tests/ ----example-test.ts ----test.js //chutzpah.json { "Fr
我是一名优秀的程序员,十分优秀!