Drupal Enterprise: Set Up Your Local Repository for Automated Testing

Speed up your testing process and catch more bugs by using automation. You can use automated visual regression testing to run a pixel-by-pixel comparison between two different versions of your site. If you are a developer with junior level (or above) javascript experience, you can also use automated functional testing to simulate user interaction with your test site. Use the below instructions to set up your local repository before you begin testing. Then, refer to the appropriate instructions for the type of testing you wish to complete:

Note: Visual regression testing will not work with content that requires authentication to view.

Setting Up Your Local Repository

  1. Create a fork of the UMN repository.
  2. In your local command line, cd into the directory where you want to keep the reg-test folder. You will need to create this folder first if it does not exist.
    • E.g., cd documents/drupal
  3. Clone the repository created in step 1 to your local machine.
  4. cd into the repository and ensure your active node.js version is set to what is in the .nvmrc file. We recommend using Node Version Manager.
    1. To install nvm: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
    2. Restart your terminal
    3. cd into your reg-test directory
      • cd documents/drupal/reg-test (or whatever you named your local repository folder)
    4. nvm install
    5. nvm use (sets your node version to the .nvmrc file)
  5. Run npm install

Related Articles

Refer to the below articles to complete automated testing: 

Last modified

Changed

TDX ID

TDX ID
7653