2
0
Эх сурвалжийг харах

Update Makefile (#7067)

* List all tasks in .PHONY
* Describe develop task in help output
* Remove undocumented test-all task, it just executes tox which isn't one of the testing requirements
* Fix coverage task
* Running tests is not quick
Jaap Roes 3 жил өмнө
parent
commit
5808a49407
1 өөрчлөгдсөн 6 нэмэгдсэн , 8 устгасан
  1. 6 8
      Makefile

+ 6 - 8
Makefile

@@ -1,10 +1,11 @@
-.PHONY: clean-pyc develop
+.PHONY: clean-pyc develop lint test coverage
 
 help:
 	@echo "clean-pyc - remove Python file artifacts"
+	@echo "develop - install development dependencies"
 	@echo "lint - check style with flake8"
-	@echo "test - run tests quickly with the default Python"
-	@echo "coverage - check code coverage quickly with the default Python"
+	@echo "test - run tests"
+	@echo "coverage - check code coverage"
 
 clean-pyc:
 	find . -name '*.pyc' -exec rm -f {} +
@@ -28,11 +29,8 @@ lint:
 test:
 	python runtests.py
 
-test-all:
-	tox
-
 coverage:
-	coverage run --source wagtail setup.py
+	coverage run --source wagtail runtests.py
 	coverage report -m
 	coverage html
-	open htmlcov/index.html
+	open coverage_html_report/index.html