Skip to content

Commit

Permalink
Move tests to 'app/' dir (#2400)
Browse files Browse the repository at this point in the history
* Move tests to 'app/' dir

* Updates.

* Makefile updates.
  • Loading branch information
b4handjr authored Mar 19, 2020
1 parent 535d0eb commit f563df6
Show file tree
Hide file tree
Showing 22 changed files with 714 additions and 75 deletions.
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

0 comments on commit f563df6

Please sign in to comment.