PHPackages                             kangshifu/auto-test - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. kangshifu/auto-test

ActiveLibrary[Testing &amp; Quality](/categories/testing)

kangshifu/auto-test
===================

基于swagger-php的自动化测试

04PHP

Since Jan 15Pushed 7y agoCompare

[ Source](https://github.com/MyFeys/auto-test)[ Packagist](https://packagist.org/packages/kangshifu/auto-test)[ RSS](/packages/kangshifu-auto-test/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

c2498168786/auto-test
=====================

[](#c2498168786auto-test)

背景
--

[](#背景)

- 别人改了先前接口，如果造成有功能影响，你可能不会发现
- 当你修改了比较底层的东西，可能影响范围比较大，需要大量时间回归测试。
- 针对有些重复机械的测试工作，浪费了大量的人力和物力，测试的结果也不太准确

基于swagger-php的自动化测试工具，仅需要指定对应swagger.json文件，不仅可以解决以上问题还可生成如下几种报告策略

- Screen 屏幕输出，将测试结果打印在终端或控制台
- Email 邮件通知，将测试报告以邮件形式发送到指定邮箱，该策略需要简单的邮件配置

两种方式安装
------

[](#两种方式安装)

autoTest是基于php的，采用composer安装，所以需要安装php运行环境和composer包管理工具；php最低版本要求5.5.9

- 安装扩展包 composer global require c2498168786/auto-test
- 或者直接下载下来当成一个单独项目 Git clone 两种方式都需要安装对应依赖包哦 composer install

执行
--

[](#执行)

php autoTest \[swagger.json文件\] \[生成报告策略\]

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5119e3034c8d20f247241a03c9fbb902795733d51502ba47112828f85e9d0ec0?d=identicon)[kangshifu](/maintainers/kangshifu)

---

Top Contributors

[![MyFeys](https://avatars.githubusercontent.com/u/33181656?v=4)](https://github.com/MyFeys "MyFeys (2 commits)")

### Embed Badge

![Health badge](/badges/kangshifu-auto-test/health.svg)

```
[![Health](https://phpackages.com/badges/kangshifu-auto-test/health.svg)](https://phpackages.com/packages/kangshifu-auto-test)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
