https://github.com/slavcodev/behat-demo
https://github.com/slavcodev/behat-demo
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/slavcodev/behat-demo
- Owner: slavcodev
- License: mit
- Created: 2022-10-26T21:43:10.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-05T06:23:56.000Z (8 months ago)
- Last Synced: 2025-06-28T12:51:54.763Z (6 months ago)
- Language: PHP
- Size: 721 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Behat demo
[![behat][ico-behat-status]][link-github]
[![psalm][ico-psalm-status]][link-github]
[![php-cs-fixer][ico-php-cs-fixer-status]][link-github]
[![Latest Version][ico-version]][link-github]
[![License][ico-license]][link-license]
[![License][ico-stand-with-ukraine]][link-stand-with-ukraine]
[ico-behat-status]: https://github.com/slavcodev/behat-demo/workflows/behat/badge.svg
[ico-psalm-status]: https://github.com/slavcodev/behat-demo/workflows/psalm/badge.svg
[ico-php-cs-fixer-status]: https://github.com/slavcodev/behat-demo/workflows/php-cs-fixer/badge.svg
[ico-version]: https://img.shields.io/github/tag/slavcodev/behat-demo.svg?label=latest
[ico-license]: https://img.shields.io/badge/License-MIT-blue.svg
[ico-stand-with-ukraine]: https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg
[link-github]: https://github.com/slavcodev/behat-demo
[link-license]: LICENSE
[link-contributing]: .github/CONTRIBUTING.md
[link-stand-with-ukraine]: https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md
Behat demo feature with context implementation.
## Usage
You need to add this feature in the features paths and register the context.
The most simple way is to add a separate suite or profile:
```yaml
# Demo profile useful to check behat works, run --profile=demo
demo:
gherkin:
# Override default tags if any.
filters:
tags: "@demo"
suites:
default:
paths: [ "%paths.base%/vendor/slavcodev/behat-demo/features" ]
contexts: [ Slavcodev\BehatDemo\DemoContext ]
```
## Links
- [Behat](https://docs.behat.org/en/latest/)