Skip to content

beginner help #68

@monaw

Description

@monaw

Hi, i am pretty lost and feeling stupid trying to figure out how to use this spec tool. Currently I'm trying to figure out:

  1. how to "run" the spreadsheet so the Overview, Diagrams and Behat sheets are update (Updated: those sheets should run automatically when info they depend on are changed; if it does not looks right, then there is a problem with the formula for that cell)
  2. how to generate the tests and then run them
  3. where i should copy the default features file into my own Drupal project (sorry i don't quite understand the BLT example used in step 3 of the readme)
  4. what's the relationship of the generated test files to the features files
  5. how to use Behat in this setup (i've never used that tool before)

I'd appreciate all help anyone can offer. Just trying to see if I can understand this enough to determine whether this tool will be helpful for our project or not...

Here's what i've done:

  1. read the readme along with other documentation pointed to by the readme, including the Behat beginner's guide
  2. made a copy of the google sheet
  3. added our "publication" content type to the Overview sheet
    Screen Shot 2022-12-22 at 3 09 06 PM
  4. added 24 fields for the publication to the Fields sheet
    Screen Shot 2022-12-22 at 3 09 59 PM
  5. installed the spec tool and behat via composer into my docker container running my development instance of Drupal on my laptop
    Screen Shot 2022-12-22 at 3 10 57 PM
  6. i have the following in vendor/acq2uia/drupal-spec-tool/behat.yml:
---
default:
  suites:
    default:
      autoload:
        '': "%paths.base%/features/bootstrap"
      paths:
        - "%paths.base%/features"
      contexts:
        - Acquia\DrupalSpecTool\Context\AccessControlContext
        - Acquia\DrupalSpecTool\Context\ContentModelContext
        - Acquia\DrupalSpecTool\Context\MediaContext
        - Acquia\DrupalSpecTool\Context\MenuContext
        - Acquia\DrupalSpecTool\Context\ViewsContext
        - Acquia\DrupalSpecTool\Context\WorkflowContext
  extensions:
    Behat\MinkExtension:
      goutte: ~
    Drupal\DrupalExtension:
      blackbox: ~
      api_driver: drupal
      drupal:
        drupal_root: docroot
      subcontexts:
        paths: [ ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions