Skip to content

putyourlightson/craft-generate-test-spec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate Test Spec for Craft CMS

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

Test specification

See an example.

Installation

Install this package via composer.

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

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

This module is licensed for free under the MIT License.


Created by PutYourLightsOn.

About

Generates a test spec from PEST PHP tests.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages