Skip to content

GRIDAPPSD/gridappsd-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python script to start the gridappsd platform for automated testing

*** This will stop all your running containers ***

*** Requires python 3.8 ***

# setup python environment
sudo apt install python3.8 python3.8-venv
python3.8 -m venv env
source env/bin/activate
pip3 install -r requirements.txt 

# set environment variables
export GRIDAPPSD_USER=<user>
export GRIDAPPSD_PASSWORD=<password>

# remove any existing docker containers before testing (if not you may see connection failed errors)
 docker rm -f $(docker ps -a -q)
 
# run pytest
pytest -s