Skip to content

natyoung/shift-left-testing-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playwright, Pact, Webmock & Mockserver

PACT_FOLDER=<absolute path> ./go.sh setup
PACT_FOLDER=<absolute path> ./go.sh test

Project structure

go.sh                        # Scripts to run the tests
├── ui_smoke                 # UI smoke tests with Playwright/Python
│   ├── test_cases           # Test cases derived from AC's
│   ├── dsl                  # What
│   ├── drivers              # How
├── certifier                # Ruby/Rails app
├── mockserver               # 3rd party API stub
├── wallet                   # Ruby/Sinatra app
├── web-api                  # Java BFF
├── web-ui                   # React UI
└── ...

Dependencies

  • python3
  • pip3
  • yarn
  • wget
  • java
  • ruby
  • docker
  • docker-compose

Env vars

PACT_FOLDER

The directory to read and write pact files.

Run

COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose build
docker-compose up