-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmarple_dev_test
More file actions
executable file
·27 lines (20 loc) · 931 Bytes
/
marple_dev_test
File metadata and controls
executable file
·27 lines (20 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# -------------------------------------------------------------
# marple_dev_test - Runs marple tests for development
# Sep 2018 - Hrutvik Kanabar
# -------------------------------------------------------------
MARPLE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
COLLECT_DIR=${MARPLE_DIR}/marple/collect
COMMON_DIR=${MARPLE_DIR}/marple/common
DISPLAY_DIR=${MARPLE_DIR}/marple/display
pytest_args="--cov=${MARPLE_DIR}/marple --cov-config=${MARPLE_DIR}/marple/.coveragerc ${COLLECT_DIR} ${DISPLAY_DIR} ${COMMON_DIR}"
pylint_args="${COLLECT_DIR} ${DISPLAY_DIR} ${COMMON_DIR} --rcfile=${MARPLE_DIR}/marple/pylintrc.txt --ignore=tools"
# Activate virtual environment
source ${MARPLE_DIR}/marple_env/bin/activate
# Set python path
export PYTHONPATH=${MARPLE_DIR}/:${PYTHONPATH}
# Run tests
python3 -m pytest $pytest_args
python3 -m pylint $pylint_args
# Deactivate virtual environment
deactivate