承接 cevinio/behat-jenkins-junit 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

cevinio/behat-jenkins-junit

最新稳定版本:1.0.1

Composer 安装命令:

composer require cevinio/behat-jenkins-junit

包简介

Jenkins JUnit formatter extension for Behat

README 文档

README

This extension is a modification of the JUnitFormatter that is included in Behat. This version will generate XML files that are compatible with the Jenkins xUnit plugin.

The initial version of this library was based on the JUnit implementation of Behat 3.17.0.

1. Installation

Require the package as a dev dependency via Composer.

composer require --dev cevinio/behat-jenkins-junit

2. Configuration

This extension adds a new formatter called jjunit.

Add the extension to your behat.yml configuration file:

default:
    extensions:
        Cevinio\BehatJenkinsJUnit\JJUnitFormatterExtension: ~
    formatters:
        jjunit:
            enabled: false

The available settings for the formatter:

name type default description
enabled boolean true whether the formatter is enabled (ignored if a --format argument is present)
output_path string the path to write the XML files to (required, or alternatively use --format jjunit --out <path>)
prefix string prefix for the generated files
suffix string suffix for the generated files
success boolean true include successful scenario's in the output file

3. Usage

Use the --format option to start generating the JUnit XML files:

vendor/bin/behat --format jjunit --out <path/to/dir>

Note that the output destination must be a directory, as Behat will generate an XML file per suite. This is identical to how the native JUnit formatter works.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-02