本文介绍了套房VS规格量角器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近拿起用量角器一个项目。

我有麻烦了解一套房和规格的之间的的区别。我也有这个文件夹是追着我跑测试的另一个文件夹,它失败的所有测试,当我运行测试的一个文件夹具有套房的麻烦。下面将是巨大的上市任何帮助是或套房的样子。

例如:

 套房:{
    CSRSmokeTest:../smoke/Video/**.js
    DesktopSmokeTest:../smoke/deskTop/**.js
},


解决方案

套房是组织你的测试非常有用的。

问题实际上是下降到一个套件和测试用例一般之间的差异。从报价:

In other words, a test suite is a collection of specs/testcases united by a common property, logic. For instance, you may have suites for different types of functionality of your application, homepage, search etc:

suites: {
  homepage: 'tests/e2e/homepage/**/*Spec.js',
  search: [
    'tests/e2e/contact_search/**/*Spec.js',
    'tests/e2e/venue_search/**/*Spec.js'
  ] 
},

And/or, you may have specs grouped into suites by the type of tests:

suites: {
  smoke: 'tests/e2e/smoke/*.js',
  performance: 'tests/e2e/performance/*.js'
},

Or, you may put all of your "regression" tests into a separate suite. Or, you can apply your own logic to group specs.

It is important to note that a single spec can be a part of multiple test suites.

这篇关于套房VS规格量角器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-24 19:31