You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @TravisCarden , I'd like to be able to export an existing spec. My use case: I've inherited an existing codebase and would like to use the drupal spec tool to document future content model changes and generate behat tests, but I don't want to spend the time to manually enter the necessary information into the sheet.
I recently took a stab at such a feature. I'm happy to clean it up and submit a pull request if its something you'd consider. It adds two step definitions to the ContentModelContext, invoked in the behat test scenario as "When I export content entity type bundles" and "When I export content entity type fields". These each export a csv that can be imported into google sheets.
The text was updated successfully, but these errors were encountered:
Hello, @DarkCody. Nice to see you in my queue! 😃 I'm definitely interested in this functionality but as some sort of CLI command rather than a Behat step. @NickWilde1990 has created something very similar in his drupal-spec-tool-commands, which updates your Behat feature files to the spreadsheet, so there's probably an opportunity here for code reuse if not collaboration. In fact, I've had some time to think about how I want to handle CLI commands since he proposed his (see #24). Why don't I file an issue to create the CLI framework, and then we can look at adding specific features like this one?
TravisCarden
changed the title
Export an existing content model from Drupal
Add the ability to update the specification to match an existing Drupal site
Dec 17, 2018
Hey @TravisCarden , I'd like to be able to export an existing spec. My use case: I've inherited an existing codebase and would like to use the drupal spec tool to document future content model changes and generate behat tests, but I don't want to spend the time to manually enter the necessary information into the sheet.
I recently took a stab at such a feature. I'm happy to clean it up and submit a pull request if its something you'd consider. It adds two step definitions to the ContentModelContext, invoked in the behat test scenario as "When I export content entity type bundles" and "When I export content entity type fields". These each export a csv that can be imported into google sheets.
The text was updated successfully, but these errors were encountered: