Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to update the specification to match an existing Drupal site #27

Open
brianreese opened this issue Dec 15, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@brianreese
Copy link

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.

@TravisCarden
Copy link
Contributor

TravisCarden commented Dec 17, 2018

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 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
@TravisCarden TravisCarden added the enhancement New feature or request label Dec 17, 2018
@NickDickinsonWilde
Copy link

Definitely, very busy this week, but I'll keep my ears open and am available to talk anytime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants