跳过了一些量角器测试 [英] Some Protractor tests are skipped

查看:60
本文介绍了跳过了一些量角器测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我启动 protractor conf.js 时,此文件需要启动多个spec文件(如下所示),其中一些(随机?)被跳过.当我分别运行每个规范时,效果很好.

When I launch protractor conf.js and this file needs to launch multiple spec files (like below), some of them are (randomly?) skipped. It works quite well when I run each spec separately.

  specs: [
    'tests/test-1-*.js',
    'tests/test-2-*.js',
    'tests/test-3-*.js'
  ],

我该怎么做才能运行所有测试而又不会被跳过?

What can I do to run all tests without any being skipped?

推荐答案

我不知道为什么为什么,但是如果您需要确保以相同的稳定性运行所有测试,而不是分别运行它们时,您可以像下面这样创建一个 bat 文件(如果您使用的是Windows):

I don't know why this is happening, but if you need to be sure to run all your tests with the same stability than when you run them separately, then you can create a bat file (if you're using Windows) like this:

CALL protractor conf.js --specs='tests/test-1-*.js'
CALL protractor conf.js --specs='tests/test-2-*.js'
CALL protractor conf.js --specs='tests/test-3-*.js'

这将解决问题,直到找到根本原因为止.

This will solve the problem until you find the root cause.

这篇关于跳过了一些量角器测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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