Skip to content

Docker-based execution environment for ALT scenario tests

Notifications You must be signed in to change notification settings

MaibornWolff/alt-runner-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alt-runner-image

Npm Version

Docker-based execution environment for ALT scenario tests. Enables execution of the scenarios without having to provide own Node context.

Example: Docker CLI

docker run
  -v /src:/src                                # mounting scenarios' & actions' root directory
  -e ALT_SRC=/src                             # declaring the mounted path as resource directory
  -v /output:/out                             # output directory where .log files and diagrams will be saved after the execution
  -e OUT_SRC=/out
  -e ALT_ENV=dev                              # which env file from /src/environment should be used
  -e ALT_PARALLEL_PROCESSES=10                # number of scenarios which should run in parallel (only for LOAD runs)
  maibornwolff/alt-runner-image:latest
  runScenario s1-my-first-scenario.yaml       # run command with scenario-name as input param

Example: .gitlab-ci.yml

run-my-scenario:
  stage: test
  image: maibornwolff/alt-runner-image:latest
  script:
  - export ALT_SRC=$(pwd)/src                 # directory path containing ./scenarios & ./actions directories
  - export OUT_SRC=$(pwd)/out                 # output directory for logs & sequence diagrams
  - export ALT_ENV=dev                        # which env file from /src/environment should be used
  - export ALT_PARALLEL_PROCESSES=10          # # number of scenarios which should run in parallel (only for LOAD runs)
  - runScenario s1-my-first-scenario.yaml     # execution script available inside the container: 'runScenario'
  when: manual
  ...