PHPackages                             bex/behat-rst-specification-locator-extension - 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. bex/behat-rst-specification-locator-extension

ActiveBehat-extension

bex/behat-rst-specification-locator-extension
=============================================

This is an extension for Behat which allows loading specifications from reStructuredText documentation

00PHP

Since Apr 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tkotosz/BehatRSTSpecificationLocatorExtension)[ Packagist](https://packagist.org/packages/bex/behat-rst-specification-locator-extension)[ RSS](/packages/bex-behat-rst-specification-locator-extension/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

BehatRSTSpecificationLocatorExtension
=====================================

[](#behatrstspecificationlocatorextension)

[![License](https://camo.githubusercontent.com/2a8224fab36c8a5935243f3cb162f95a43079f0a47b9c0d8bfa0d742759fa749/68747470733a2f2f706f7365722e707567782e6f72672f6265782f62656861742d7273742d73706563696669636174696f6e2d6c6f6361746f722d657874656e73696f6e2f6c6963656e7365)](https://packagist.org/packages/bex/behat-rst-specification-locator-extension)[![Latest Stable Version](https://camo.githubusercontent.com/b0b3ea3306cbd01b0bc9628fb0b3fb273e165caa8dedfb14bd70a76ff505c336/68747470733a2f2f706f7365722e707567782e6f72672f6265782f62656861742d7273742d73706563696669636174696f6e2d6c6f6361746f722d657874656e73696f6e2f76657273696f6e)](https://packagist.org/packages/bex/behat-rst-specification-locator-extension)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ad83ae1b7dcfd590d01db47d70fc138cc3638f55e418be331f7412795d7bfcb3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746b6f746f737a2f426568617452535453706563696669636174696f6e4c6f6361746f72457874656e73696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tkotosz/BehatRSTSpecificationLocatorExtension/?branch=master)[![Build Status](https://camo.githubusercontent.com/1e789ae83f218876740fcb36dbe8db52af5eb566e07d315eab06a515c287ef8d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746b6f746f737a2f426568617452535453706563696669636174696f6e4c6f6361746f72457874656e73696f6e2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tkotosz/BehatRSTSpecificationLocatorExtension/build-status/master)[![Documentation Status](https://camo.githubusercontent.com/b9213dd9d47ce9ec3201e4d33c38c34c0d2a0eadd8d488ff1e5a090a3b013109/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f62656861742d7273742d73706563696669636174696f6e2d6c6f6361746f722d657874656e73696f6e2f62616467652f3f76657273696f6e3d6c6174657374)](https://behat-rst-specification-locator-extension.readthedocs.io/en/latest/?badge=latest)

`BehatRSTSpecificationLocatorExtension` is a [Behat](https://behat.org) extension which allows loading specifications from [reStructuredText](https://docutils.sourceforge.io/rst.html) documentation.

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

[](#installation)

The recommended installation method is through [Composer](https://getcomposer.org):

```
composer require --dev bex/behat-rst-specification-locator-extension
```

Documentation
-------------

[](#documentation)

The official documentation is available [here](https://behat-rst-specification-locator-extension.readthedocs.io/).

TODO
----

[](#todo)

- Add tests for running behat with file path as parameter
- Add tests for running behat with folder path as parameter
- Add tests for running behat without path parameter (cases: path configured in suite, path not configured)
- Make sure recursive file discovery works under any given path
- Add parse error reporting (proper error handling)
- Make sure dry-run prints the scenarios
- Fix line number reference when test fails (it should refer to the line number in the original document)
- Add the ability to run specific scenario by referring to line number (e.g. `bin/behat docs/my_doc.rst:12`)
- Ignore documentation files which doesn't contain gherkin code blocks
- Implement feature to ignore some code blocks from the document since probably not all scenario written in the document should be executed as automated test (note: probably can be done simply with tagging the scenario - options to just skip or exclude it entirely)
- Investigate: Is there a report generator extension already which could be used to enhance the documentation with the scenario status (passing/skipped/failed)?

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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/6451ac5fdc814bfa3aec1b3cf746fdb3ccec68ccbbe3a6f30b3b6c9266b0cb79?d=identicon)[tkotosz](/maintainers/tkotosz)

### Embed Badge

![Health badge](/badges/bex-behat-rst-specification-locator-extension/health.svg)

```
[![Health](https://phpackages.com/badges/bex-behat-rst-specification-locator-extension/health.svg)](https://phpackages.com/packages/bex-behat-rst-specification-locator-extension)
```

PHPackages © 2026

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