testingbot/codeception-extension

Codeception 扩展,用于将元数据报告回 TestingBot。

安装次数: 24,592

依赖者: 0

建议者: 0

安全: 0

星标: 2

关注者: 1

分支: 1

公开问题: 0

类型:codeception-extension

1.0.3 2017-09-16 09:52 UTC

This package is auto-updated.

Last update: 2024-09-22 00:38:17 UTC


README

这是一个 CodeCeption 扩展,它将测试元数据发送回 TestingBot。这样,你可以在 TestingBot 仪表板概览中看到测试名称、通过/失败状态等信息。

安装

  • 将 testingbot/codeception-extension composer 包添加到项目的 composer.json 中或运行 composer require testingbot/codeception-extension

  • 执行 composer 更新你的环境。

  • 在 codeception.yml 文件中添加扩展和你的 TestingBot 凭证

actor: Tester
paths:
    tests: tests
    log: tests/_output
    data: tests/_data
    support: tests/_support
    envs: tests/_envs
settings:
    bootstrap: _bootstrap.php
    colors: true
    memory_limit: 1024M
extensions:
    enabled:
        - Codeception\Extension\RunFailed
        - Codeception\Extension\TestingBotExtension
    config:
        Codeception\Extension\TestingBotExtension:
            key: "KEY"
            secret: "SECRET"
  • 确保你的测试使用该扩展
modules:
  enabled:
    - WebDriver
  config:
    WebDriver:
      host: 'hub.testingbot.com'
      port: 80
      browser: chrome
      url: 'http://www.google.com'
      capabilities:
        'client_key': 'YOUR TESTINGBOT KEY'
        'client_secret' : 'YOUR TESTINGBOT SECRET'
        'build': 'codeception-testingbot'

env:
  single:
    modules:
      config:
        WebDriver:
          capabilities:
            'name': 'single_test'

有关更多信息,请参阅此文档 此处