[Test] run behave tests with test plugins outside project root

This commit is contained in:
MinchinWeb 2021-05-16 21:14:21 -06:00
parent 3492dd291a
commit 9888d98860
3 changed files with 19 additions and 5 deletions

View file

@ -52,11 +52,15 @@ jobs:
poetry install --remove-untracked
poetry install
poetry run python -m pip install ./tests/external_plugins_src/
cd ..
# installed test plugins aren't recognized by "behave" if run from the
# project's root folder, but "poetry run" doesn't work on folders upstream
# from project root
- name: Test with pytest
if: success() || failure()
run: poetry run pytest --junitxml=reports/pytest/results.xml
run: pytest --junitxml=reports/pytest/results.xml
- name: Test with behave
if: success() || failure()
run: poetry run behave --no-skipped --format progress2 --junit --junit-directory reports/behave
run: behave --no-skipped --format progress2 --junit --junit-directory reports/behave jrnl/features