-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve readability of test targets #1253
Conversation
a0c97e2
to
cacb23d
Compare
Signed-off-by: Allie Crevier <[email protected]>
rebased on latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @creviera , minor comment inline, but since it was already there, merging as-is
@@ -67,24 +67,25 @@ clean: ## Clean the workspace of generated resources | |||
TESTS ?= tests | |||
ITESTS ?= tests/integration | |||
FTESTS ?= tests/functional | |||
TESTOPTS ?= -v | |||
TESTOPTS ?= -v --cov-config .coveragerc --cov-report html --cov-report term-missing --cov=securedrop_client --cov-fail-under 100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the -v
here apply to the same pytest command as the v
on L74 and L81?
@@ -116,7 +117,7 @@ bandit: ## Run bandit with medium level excluding test-related folders | |||
bandit -ll --recursive . --exclude ./tests,./.venv | |||
|
|||
.PHONY: check | |||
check: clean check-black check-isort bandit lint mypy test-random test-integration test-functional ## Run the full CI test suite | |||
check: clean check-black check-isort semgrep bandit lint mypy test-random test-integration test-functional ## Run the full CI test suite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch :)
Description
Use
TESTOPTS
to improve readability.Run semgrep in
make test
andmake test-random
which means we run semgrep in CI.Test Plan
make test
andmake test-random
still work