Skip to content

Commit

Permalink
split unit and integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hackaugusto committed Jan 28, 2021
1 parent d8c63a4 commit 9c838d5
Show file tree
Hide file tree
Showing 15 changed files with 528 additions and 509 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ jobs:

- name: Execute unit-tests
run: make unittest

- name: Execute integration-tests
run: make integrationtest
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,12 @@ copyright:
grep -EL "Copyright \(c\) 20.* Aiven" $(shell git ls-files "*.py" | grep -v __init__.py)

.PHONY: unittest
unittest: fetch-kafka $(GENERATED)
python3 -m pytest -s -vvv tests/
unittest: $(GENERATED)
python3 -m pytest -s -vvv tests/unit/

.PHONY: integrationtest
integrationtest: fetch-kafka $(GENERATED)
python3 -m pytest -s -vvv tests/integration/

.PHONY: test
test: lint copyright unittest
Expand Down
Loading

0 comments on commit 9c838d5

Please sign in to comment.