如何运行与Testacular一个端到端的测试? [英] How to run a single E2E test with Testacular?

查看:93
本文介绍了如何运行与Testacular一个端到端的测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Testacular 是非常好的测试运行,我非常喜欢它。运行我的单元测试我注意到,运行测试是测试光标已开启,但,这是不符合E2E测试的情况。所有正在运行的端到端测试来验证单个测试实在是乏味和浪费时间。有谁知道如何运行一个单一的端到端测试。有一些CONFIGS,我想念那个可以让我运行一个端到端的测试?

Testacular is really nice test runner and I like it very much. Running my unit test I noticed that the test is run is the test that the cursor is on but, that is not the case with E2E tests. Running all e2e test to verify a single test is really tedious and time waste. Does anybody know how to run a single e2e test. Is there some configs that I miss that can make me run a single e2e test ?

感谢你在前进!

推荐答案

要隔离一个测试,你可以使用一个简单的一招 - 加D来形容,还是我为它

To isolate a test you can use a simple trick - add "d" to describe, or i to "it".

例如:

describe("Should not run", function(){
  ...
});

ddescribe("Should run...", function(){
  ...
});

这同样适用于:

describe("Will run", function(){
   it("should not run...", function(){

   });

   iit("should run...", function(){

   });
});

如果您有多个ddescribe或个人所得税,他们将所有的运行和其他经常描述或它不会的。

If you have multiple "ddescribe" or "iit" they will all run and the other regular "describe" or "it" won't.

希望它可以帮助...

Hope it helps...

这篇关于如何运行与Testacular一个端到端的测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆