PHPackages                             putyourlightson/craft-generate-test-spec - 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. putyourlightson/craft-generate-test-spec

ActiveYii2-extension[Testing &amp; Quality](/categories/testing)

putyourlightson/craft-generate-test-spec
========================================

v2.x-dev(1y ago)14.1k↓34.8%mitPHPPHP ^8.1

Since Nov 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/putyourlightson/craft-generate-test-spec)[ Packagist](https://packagist.org/packages/putyourlightson/craft-generate-test-spec)[ RSS](/packages/putyourlightson-craft-generate-test-spec/feed)WikiDiscussions v2 Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Generate Test Spec for Craft CMS
================================

[](#generate-test-spec-for-craft-cms)

A Craft module that generates a test specification from PEST PHP test results.

[![Test specification](https://camo.githubusercontent.com/4b45bcb43b936c24ca43d8e07be17510703929bb4b493110d9ae6ed6da8e3650/68747470733a2f2f707574796f75726c69676874736f6e2e636f6d2f6173736574732f696d616765732f61727469636c65732f626c69747a2d746573742d737065632d73637265656e73686f742e706e67)](https://camo.githubusercontent.com/4b45bcb43b936c24ca43d8e07be17510703929bb4b493110d9ae6ed6da8e3650/68747470733a2f2f707574796f75726c69676874736f6e2e636f6d2f6173736574732f696d616765732f61727469636c65732f626c69747a2d746573742d737065632d73637265656e73686f742e706e67)

See an [example](https://github.com/putyourlightson/craft-blitz/blob/develop/tests/TESTS.md).

Installation
------------

[](#installation)

Install this package via composer.

```
composer require putyourlightson/craft-generate-test-spec --dev
```

Usage
-----

[](#usage)

This module looks for a `test-results.xml` file (JUnit XML format) in the test path and generates a test spec at `./TESTS.md`.

```
php craft generate-test-spec/markdown path/to/tests
```

The following command can be used to have Pest produce the `test-results.xml` file in the required JUnit XML format.

```
php craft pest/test --test-directory=path/to/tests --log-junit=path/to/tests/test-results.xml
```

License
-------

[](#license)

This module is licensed for free under the MIT License.

---

Created by [PutYourLightsOn](https://putyourlightson.com/).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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.

###  Release Activity

Cadence

Every ~344 days

Total

2

Last Release

559d ago

Major Versions

v1.x-dev → v2.x-dev2024-11-05

PHP version history (2 changes)v1.x-devPHP ^8.0.2

v2.x-devPHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/59428c6783d02d74c8778d9953ba84c35d3877ece53f5eb393689c052a9c97e4?d=identicon)[putyourlightson](/maintainers/putyourlightson)

---

Top Contributors

[![bencroker](https://avatars.githubusercontent.com/u/57572400?v=4)](https://github.com/bencroker "bencroker (34 commits)")

### Embed Badge

![Health badge](/badges/putyourlightson-craft-generate-test-spec/health.svg)

```
[![Health](https://phpackages.com/badges/putyourlightson-craft-generate-test-spec/health.svg)](https://phpackages.com/packages/putyourlightson-craft-generate-test-spec)
```

###  Alternatives

[spatie/pest-plugin-snapshots

A package for snapshot testing in Pest

381.7M157](/packages/spatie-pest-plugin-snapshots)[markhuot/craft-pest

A Pest runner

439.1k4](/packages/markhuot-craft-pest)

PHPackages © 2026

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