定制 testflowlabs/test-attributes 二次开发

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

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

testflowlabs/test-attributes

最新稳定版本:v1.0.0

Composer 安装命令:

composer require testflowlabs/test-attributes

包简介

PHP 8 attributes for testing - BDD steps and test traceability

README 文档

README

PHP 8 attributes for testing - BDD steps and test traceability

PHP Version License

Lightweight PHP 8 attributes for use with testing plugins.

Installation

composer require testflowlabs/test-attributes

Attributes

Attribute Target Purpose Used By
#[Given] Method/Function BDD step - Arrange testflowlabs/pest-plugin-bdd
#[When] Method/Function BDD step - Act testflowlabs/pest-plugin-bdd
#[Then] Method/Function BDD step - Assert testflowlabs/pest-plugin-bdd
#[TestedBy] Method Mark production method as tested by specific test testflowlabs/testlink
#[Links] Method Link test to production code (traceability only) testflowlabs/testlink
#[LinksAndCovers] Method Link test to production code + coverage testflowlabs/testlink

All attributes are repeatable.

Why Separate Package?

This package is a production dependency, while testing plugins remain dev dependencies.

{
    "require": {
        "testflowlabs/test-attributes": "^1.0"
    },
    "require-dev": {
        "testflowlabs/pest-plugin-bdd": "^0.1",
        "testflowlabs/testlink": "^0.1"
    }
}

This allows annotating code with attributes without pulling in test runners.

License

MIT License. See LICENSE for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-03