Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Latest commit

 

History

History
58 lines (38 loc) · 1.95 KB

File metadata and controls

58 lines (38 loc) · 1.95 KB

Content diff

./content_diff is a simple test which looks for contents differences between Dev, Staging & Production version of the same page. At the moment it only compares selected Domestic & International pages.

This test uses:

General requirements

Installation and execution

  1. Create a dedicated virtualenv mkvirtualenv -p python3.8 contentdiff or use the same one as for other periodic_tasks
  2. Install dependencies make requirements_periodic_tasks (or pip install -r requirements_load.txt)
  3. Set required env vars using periodic.sh script (see Env Vars & Convenience shell scripts sections in the main README)
  4. Run the test with dedicated make target

Running the content diff test

In order to run the test you'll need to specify for which site you want to run it and what two environments you want to compare:

SERVICE=international ENVS_TO_COMPARE=stage_dev \
    make compare_content

Possible values:

  • SERVICE: international or domestic
  • ENVS_TO_COMPARE:
    • prod_uat
    • prod_stage
    • prod_dev
    • stage_uat
    • stage_dev

Report

Once the test is finished, a simple HTML report will be generated and saved in ./reports directory.
The report contains few metrics:L

  • percentage similarity between two version of the page

Below is a an example of a content diff report summary: an example content diff report summary

And here's an example of a content difference between Dev & Staging version of the same page: an example page content diff report