Skip to content

Commit

Permalink
Merge pull request #1012 from cderici/makefile-tests-quality-of-life
Browse files Browse the repository at this point in the history
#1012

#### Description

Makes it easy for everyone to run unit tests, integration tests and all tests as targets using `make`.

Removes the `tests` target, and adds `run-unit-tests`, `run-integration-tests` and `run-all-tests` targets.
  • Loading branch information
jujubot authored Jan 25, 2024
2 parents 1cc3c58 + ea70f49 commit 32ce250
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ client:
tox -r --notest -e lint,py3
$(PY) -m juju.client.facade -s "juju/client/schemas*" -o juju/client/

.PHONY: test
test: lint
.PHONY: run-unit-tests
run-unit-tests: lint .tox
tox -e py3

.PHONY: run-integration-tests
run-unit-tests: lint .tox
tox -e integration

.PHONY: run-all-tests
test: run-unit-tests run-integration-tests

.PHONY: lint
lint:
@./scripts/copyright.sh
Expand Down

0 comments on commit 32ce250

Please sign in to comment.