2

我们无法使用 web-component-tester 和 Sauce Labs 测试我们的聚合物元素。当我们尝试使用超过订阅级别允许同时运行的浏览器进行测试时,不能立即运行的测试最终会超时。酱实验室和/或 WCT 不知道如何等待其他测试完成才开始执行测试,这似乎是错误的,这样我们就可以根据需要排队尽可能多的测试,而不必担心 VM 利用率。

有没有人弄清楚这一点?谢谢。

这是我们的 wct.conf.js 以防万一:

module.exports = {
  testTimeout: 600 * 1000,
  persistent: false,
  ttyOutput: false,
  verbose: false,
  expanded: true,
  browserOptions: {
    name: "TWT Component Tests"
  },
  suites: [
    'elements/twt-elements/test/index.html'
  ],
  root: 'app',
  webserver: {
    pathMappings: [
      {'/secrets.json': '../db/secrets.json'},
    ],
  },
  plugins: {
    local: {
      disabled: false,
      browsers: ['chrome', 'safari', 'canary', 'firefox']
    },
    sauce: {
      disabled: false,
      commandTimeout: 600,
      idleTimeout: 180,
      browsers: [
        /* see https://docs.saucelabs.com/reference/platforms-configurator */
        /* support matrix: https://docs.google.com/spreadsheets/d/1XqTxODsi2s2GGllld1yHImtb-2ubCX1XbRsvZ4DqpZI */
        {
          browserName: "chrome",
          platform: "OS X 10.9",
          version: "40"
        }, 
        {
          browserName: "safari",
          platform: "OS X 10.9",
          version: "7.0"
        }, 
        {
          browserName: "safari",
          platform: "OS X 10.10",
          version: "8.0"
        }, 
        {
          browserName: "chrome",
          platform: "Windows 8.1",
          version: "40"
        },
        {
          browserName: "internet explorer",
          platform: "Windows 8.1",
          version: "11.0"
        },
        {
          browserName: "firefox",
          platform: "Windows 7",
          version: "27.0"
        },
        {
          browserName: "internet explorer",
          platform: "Windows 7",
          version: "10.0"
        },
      ]
    }
  }
};
4

0 回答 0