定制 ueslialmeida/jira-codeception-extension 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ueslialmeida/jira-codeception-extension

Composer 安装命令:

composer require ueslialmeida/jira-codeception-extension

包简介

This package provides an extension for Codeception to create Jira issues automatically when a test fails.

README 文档

README

This package provides an extension for Codeception to create issues in Jira automatically when a test fails.

How it works?

When you run a test and it fails the extension will connect with your Jira instance through the Jira API and create an issue containing the data generated by Codeception at the moment of the failure. The number of issues created will vary depending on the number of failed tests, if two tests failed then two separated issues will be created.

The issue will contain the following data:

  • Test Name
  • Failure Message
  • Failed Step
  • File Name
  • Stack Trace

Configuration Example

This extension creates a Jira issue after a test failure. To use this extension a valid Jira configuration is required.

  • host: A Jira instance.
  • user: A valid user that has permission to create issues in the specified project.
  • token: A valid token for the specified user. The API will not accept the user password so a token is required. You can create a token in the user configuration panel, for more information follow the Jira official documentation here.
  • projectKey: A valid Jira project key (e.g. TA, ZTE, ETC).
  • issueType: Usually the issue is created as a Bug but you can change it for Task or another valid issue type available in your Jira instance.
  • debugMode: In case you are creating tests or debugging tests you may not want to create issues (and I don't recommend it) so setting this config to true the extension will not create issues in production set it back to false.

Configuration 'codeception.yml' example:

extensions:
  enabled:
    - Codeception\Extension\JiraExtension
  config:
    Codeception\Extension\JiraExtension:
      host: https://yourdomain.atlassian.net
      user: email@mail.com
      token: Tg7womaGGFpn9EC16qD3L7T6
      projectKey: JE
      issueType: Bug
      label:
        - autotest_bug
      debugMode: false

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固