Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dennisinteractive/behat-references-generator
Automatically generates non-existing referenced entities when creating content
https://github.com/dennisinteractive/behat-references-generator
behat
Last synced: 6 days ago
JSON representation
Automatically generates non-existing referenced entities when creating content
- Host: GitHub
- URL: https://github.com/dennisinteractive/behat-references-generator
- Owner: dennisinteractive
- Created: 2018-06-19T13:24:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-20T18:11:29.000Z (about 6 years ago)
- Last Synced: 2024-11-07T13:38:03.599Z (about 2 months ago)
- Topics: behat
- Language: PHP
- Size: 173 KB
- Stars: 0
- Watchers: 39
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Behat References Generator
Generates non-existing referenced entities when creating content### Installation
1. `composer require dennisdigital/behat-references-generator:dev-master`You might need to add it to repositories first
```
"repositories": {
"behat-references-generator": {
"type": "vcs",
"url": "[email protected]:dennisinteractive/behat-references-generator.git",
"no-api": true
}
.
.
.
```2. Edit behat.yml and add the contexts and configuration following the example in [behat.yml.dist]: https://github.com/dennisinteractive/behat-references-generator/blob/master/behat.yml.dist
### Requirements
You need to enable these modules
- Entity API**For the demo you will need to enable this module:**
- Node Reference Content (Copy from the fixtures folder into the site's modules folder)### Running
- Go into the tests folder
- Run `./behat --format=pretty`### Failing tests
You can find the screenshots of failing tests on the `files/screenshots` folder### @todo
- [x] make field mapping work
- [ ] make default content for image fields work
- [x] make default content for node fields work
- [ ] make yml overrides for image fields work
- [x] make yml overrides for content fields work
- [ ] make step definition overrides for image fields work
- [x] make step definition overrides for content fields work
- [ ] make url aliases work on nodes, terms and images
- [ ] fix php errors when running tests
- [ ] allow to have more than one alias for the same field name
- [ ] support default content for terms
- [ ] support content generation for terms
- [ ] upgrade drupal extension and drupal driver
- [ ] update readme