Skip to content

Commit

Permalink
Meta: removed tests/Makefile and shared.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
bbugyi200 committed Nov 29, 2018
1 parent 9bff23f commit 126a3af
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .funky
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"a": "source ~/projects/funky/venv/bin/activate \"$@\"", "SS": "find ./scripts -type f \\( -name \"*.py\" -not -name \"*__.py\" \\) -o -name \"*.sh\" \"$@\"", "C": "echo \"./setup.py ./setup.cfg ./.travis.yml ./MANIFEST.in ./.coveragerc ./.codecov.yaml\" \"$@\"", "D": "echo \"./README.md ./tests/README.md ./CHANGELOG.md ./CONTRIBUTING.md\" \"$@\"", "0": "cd /home/bryan/projects/funky/ || return 1", "I": "get funky \"$@\"", "LL": "ls -a && task project:Dev.funky -BLOCKED next \"$@\"", "M": "echo \"Makefile ./tests/Makefile ./shared.mk\"", "T": "find ./tests -type f -name \"*.py\" -not -name \"*__.py\" \"$@\"", "p": "d && eval \"$@\"; a", "S": "find ./funky -type f -name \"*.py\" -not -name \"*__.py\" \"$@\"", "r": "python -m funky \"$@\"", "t": "make check pytest_opts=\"$*\"", "d": "deactivate \"$@\"", "LLL": "ls -a && echo && ghi --no-pager \"$@\""}
{"a": "source ~/projects/funky/venv/bin/activate \"$@\"", "SS": "find ./scripts -type f \\( -name \"*.py\" -not -name \"*__.py\" \\) -o -name \"*.sh\" \"$@\"", "C": "echo \"./Makefile ./setup.py ./setup.cfg ./.travis.yml ./MANIFEST.in ./.coveragerc ./.codecov.yaml\" \"$@\"", "D": "echo \"./README.md ./tests/README.md ./CHANGELOG.md ./CONTRIBUTING.md\" \"$@\"", "0": "cd /home/bryan/projects/funky/ || return 1", "I": "get funky \"$@\"", "LL": "ls -a && task project:Dev.funky -BLOCKED next \"$@\"", "T": "find ./tests -type f -name \"*.py\" -not -name \"*__.py\" \"$@\"", "p": "d && eval \"$@\"; a", "S": "find ./funky -type f -name \"*.py\" -not -name \"*__.py\" \"$@\"", "r": "python -m funky \"$@\"", "t": "make check pytest_opts=\"$*\"", "d": "deactivate \"$@\"", "LLL": "ls -a && echo && ghi --no-pager \"$@\""}
19 changes: 15 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include shared.mk

.PHONY: help
help: ## Print this message.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort

.PHONY: clean
clean: clean-build clean-pyc clean-test ## Remove all build, test, coverage and Python artifacts.
Expand All @@ -26,8 +27,18 @@ clean-test: ## Remove test and coverage artifacts.
rm -fr htmlcov/
rm -fr .pytest_cache

check check-python check-shell:
@$(MAKE) --no-print-directory -C tests $@
.PHONY: check
check: check-python check-shell ## Run all tests.

.PHONY: check-python
check-python: ## Run Python tests.
@printf "\n%s\n" "---------- Running Python Tests ----------"
./tests/runtests $(pytest_opts)

.PHONY: check-shell
check-shell: ## Run Shell tests.
@printf "\n%s\n" "---------- Running Shell Tests ----------"
./tests/scripts/shell/test_funky.sh

.PHONY: release
release: dist ## Package and upload a release.
Expand Down
12 changes: 0 additions & 12 deletions shared.mk

This file was deleted.

12 changes: 0 additions & 12 deletions tests/Makefile

This file was deleted.

4 changes: 2 additions & 2 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Funky uses two different types of tests:

* Python tests, which test funky's core codebase. These tests use the [pytest] framework and can be run using the `make check-python` command. You may specify `pytest` command-line options by setting the `pytest_opts` variable (e.g. `make check-python pytest_opts=-v`).
* Shell tests, which test the shell integration script. These tests use the [shunit2] framework and can be run using the `make check-shell` command.
* **Python tests**, which test funky's core codebase. These tests use the [pytest] framework and can be run using the `make check-python` command. You may specify `pytest` command-line options by setting the `pytest_opts` variable (e.g. `make check-python pytest_opts=-v`).
* **Shell tests**, which test the shell integration script. These tests use the [shunit2] framework and can be run using the `make check-shell` command.

You can **run all the tests** using the `make check` command.

Expand Down

0 comments on commit 126a3af

Please sign in to comment.