Skip to content

TareqElayyan/VarbaseEntityqueueFormWidget

Repository files navigation

Varbase Build

Usage

First you need to install composer.

Note: The instructions below refer to the global composer installation. You might need to replace composer with php composer.phar (or similar) for your setup.

After that you can create the project:

composer create-project Vardot/varbase-build:^8.4.03 VarbaseEntityqueueFormWidget --no-dev --no-interaction

If you want to create a project with the development option, to get the latest development work.

composer create-project Vardot/varbase-build:8.x VarbaseEntityqueueFormWidget --stability dev --no-interaction

Create new Vartheme subtheme for a project.

composer create-new-vartheme "THEME_NAME" "ltr" "docroot/sites/default/themes/custom"

For right to left themes.

composer create-new-vartheme "THEME_NAME" "rtl" "docroot/sites/default/themes/custom"

or to create a new theme in the docroot/themes/custom

composer create-new-vartheme "THEME_NAME" "ltr"

Automated testing

To run the automated testing with behat you will need to change the [ wd_host and base_url ] settings in the [ behat.varbase.yml ] file to go with your project configuration and the selenium server.

    Behat\MinkExtension:
      files_path: "%paths.base%/tests/assets/"
      goutte: ~
      selenium2:
        wd_host: 127.0.0.1:4445/wd/hub
        capabilities:
          browser: 'firefox'
          # browser: 'chrome'
          # browser: 'phantomjs'
          nativeEvents: true
      base_url: 'http://127.0.0.1:8080'
      browser_name: 'firefox'
      # browser_name: 'chrome'
      # browser_name: 'phantomjs'
      javascript_session: selenium2

Testing scenarios are tagged with the Behat tags of:

@local = Local @development = Development server. @staging = Staging and testing server. @production = Production live server.

So that we only run bin/behat --tags with the right tag for the environment.

Run the varbase check tests. Only to check, without any changes to the website.

  $ composer varbase-check-tests

Run the varbase full local tests. which developers could test all scenarios in their local machine environment.

  $ composer varbase-full-local-tests

Run the varbase full development tests. which developers could test scenarios on the website at the development environment.

  $ composer varbase-full-development-tests

Run the varbase full staging tests. which developers could test scenarios on the website at the staging environment.

  $ composer varbase-full-staging-tests

Run the varbase full production only tests. not to change anything with test scenarios on the production environment.

  $ composer varbase-full-production-tests

Run the varbase full tests. init, apply, then cleanup.

  $ composer varbase-init-tests
  $ composer varbase-apply-tests
  $ composer varbase-cleanup-tests

Run the varbase full tests. Which equivalent to varbase-init-tests, varbase-apply-tests, varbase-cleanup-tests

$ composer varbase-full-tests

We could run behat tests with this set Go to [ VarbaseEntityqueueFormWidget/docroot/profiles/varbase ] in the terminal then you could run the following command:

$ ../../../bin/behat tests/features/varbase

Then you will be able to open the full report for the automated test in a web browser at the following path: [ VarbaseEntityqueueFormWidget/docroot/profiles/varbase/tests/reports ]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published