简体   繁体   English

从WebStorm运行Jasmine测试

[英]Run Jasmine tests from WebStorm

WebStorm shows icons next to Jasmine's test cases and it seems as if there should be an option to run it, but the menu just says: Nothing here . WebStorm在Jasmine的测试用例旁边显示图标,似乎应该有一个运行它的选项,但是菜单仅显示: 这里什么也没有

WebStrom测试套件

As I did not find any documentation about this feature, I wonder if it should be possible to run tests like this and if yes, what the conditions are. 由于我没有找到有关此功能的任何文档,因此我想知道是否应该可以运行这样的测试,如果可以,条件是什么。

This likely means that no suitable test runners have been found. 这可能意味着尚未找到合适的测试跑步者。 WebStorm doesn't manage test running directly. WebStorm不管理直接运行的测试。 This job is done by a test runner. 这项工作由测试跑步者完成。 WebStorm supports several test runners - Mocha, Karma, Jest, JsTestDriver, nodeunit,... The logic used for determining what test runner is available for a given test file is based on dependencies declarations in nearest package.json file. WebStorm支持多种测试运行程序-Mocha,Karma,Jest,JsTestDriver,nodeunit等。用于确定给定测试文件可用的测试运行程序的逻辑基于最近的package.json文件中的依赖项声明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM