mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-05 07:56:14 +02:00
[Test] run behave tests with test plugins outside project root
This commit is contained in:
parent
3492dd291a
commit
9888d98860
3 changed files with 19 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue