## (1) Test dependencies (run this part only the first time).
# If using zsh, install using '\', i.e. `pip install -e .\[full\]`
# pip install -e .[full]

## (1.1) Install pytest dependencies
# pip install -r requirements-test.txt

## (1.2) Install flake8 dependencies
# pip install -r requirements-flake.txt

## (1.3) Generate chats for test
# mkdir -p tests/chats/hformats tests/chats/merge
# whatstk-generate-chat --size 500 -z --output-path tests/chats/hformats/
# whatstk-generate-chat --size 300 -z --last-timestamp 2019-09-01 \
#                         --hformats '%Y-%m-%d, %H:%M - %name:' \
#                         --output-path tests/chats/merge/ --filenames file1.txt
# whatstk-generate-chat --size 300 -z --last-timestamp 2020-01-01 \
#                         --hformats '%Y-%m-%d, %H:%M - %name:' \
#                         --output-path tests/chats/merge/ --filenames file2.txt


## (2) Run flake
flake8 \
    --max-complexity 10\
    --docstring-convention=google\
    --format=html --htmldir=reports/flake-report\
    --max-line-length=120\
    --ignore=ANN101,ANN102,AN401\
    whatstk

## (3) Run tests
py.test \
    --html=reports/testreport.html\
    --cov-report html:reports/htmlcov\
    --cov-report term\
    --cov-report xml:reports/cov.xml\
    --cov=whatstk tests
