Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from toptal/devx-3876-introduce-pytest-bdd
Browse files Browse the repository at this point in the history
Introduce pytest-bdd
  • Loading branch information
bwilczek authored Apr 4, 2024
2 parents 3fb020d + faac444 commit 5ae881a
Show file tree
Hide file tree
Showing 6 changed files with 204 additions and 38 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
poetry config virtualenvs.in-project true --local
- name: Define a cache for the virtual environment based on the dependencies lock file
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
Expand All @@ -40,4 +40,7 @@ jobs:
run: poetry install

- name: Run unit tests
run: poetry run pytest --cov-fail-under=0 --cov=file_system/
run: poetry run pytest --cov-fail-under=0 --cov=file_system/ tests/unit/

- name: Run functional tests
run: poetry run pytest tests/functional
6 changes: 6 additions & 0 deletions features/sample.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Feature: Sample feature testing pytest-bdd integration

Scenario: Integration works properly
Given python-bdd is installed
When I run this scenario
Then it should not raise errors
Loading

0 comments on commit 5ae881a

Please sign in to comment.