Skip to content
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

Move tests to 'app/' dir #2400

Merged
merged 3 commits into from
Mar 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- run:
name: Run integration tests
command: |
sudo chown -R ubuntu tests/
sudo chown -R ubuntu app/tests/
cp .env.sample .env
make refresh
make up_detached
Expand Down
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ COMPOSE_TEST = docker-compose -f docker-compose-test.yml
COMPOSE_INTEGRATION = docker-compose -f docker-compose.yml -f docker-compose.integration-test.yml
COMPOSE_FULL = docker-compose -f docker-compose.yml -f docker-compose-full.yml

PYTHON_TEST = pytest -vvvv --cov --cov-report term-missing --show-capture=no
PYTHON_TEST = pytest -vvvv --cov --cov-report term-missing --show-capture=no --ignore=tests/integration
PYTHON_TEST_FAST = python manage.py test -v 3 --parallel
PYTHON_CHECK_MIGRATIONS = python manage.py makemigrations --check --dry-run --noinput
ESLINT = yarn lint
ESLINT_FIX = yarn lint-fix
JS_TEST = yarn test
FLAKE8 = flake8 .
BLACK_CHECK = black -l 90 --check .
BLACK_CHECK = black -l 90 --check --diff .
BLACK_FIX = black -l 90 .
CHECK_DOCS = python manage.py generate-docs --check=true
GENERATE_DOCS = python manage.py generate-docs
Expand Down Expand Up @@ -163,4 +163,7 @@ integration_vnc_up_detached: integration_build
$(COMPOSE_INTEGRATION) up -d vnc

integration_test: integration_build
$(COMPOSE_INTEGRATION) run firefox tox -c tests/integration
$(COMPOSE_INTEGRATION) run firefox tox -c app/tests/integration

integration_test_parallel: integration_build
$(COMPOSE_INTEGRATION) run firefox tox -c app/tests/integration -- -n 4
2 changes: 1 addition & 1 deletion app/.flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[flake8]
exclude=migrations,settings*
exclude=migrations,settings*,.tox
max-line-length = 90
File renamed without changes.
Loading