[mousetrap/gnome3-wip: 220/240] Remove nose dependency. Now only dependent on coverage (optionally).
- From: Heidi Ellis <heidiellis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetrap/gnome3-wip: 220/240] Remove nose dependency. Now only dependent on coverage (optionally).
- Date: Mon, 8 Sep 2014 15:31:03 +0000 (UTC)
commit ad7cf417a7058f6ee077bf54ac2f46b5cb8d8974
Author: Stoney Jackson <dr stoney gmail com>
Date: Mon Jun 30 13:29:29 2014 -0400
Remove nose dependency. Now only dependent on coverage (optionally).
Makefile.am | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 28dff9c..9356a48 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -123,11 +123,12 @@ MT_BUILD_HOME = $(shell dirname $(shell find "$(builddir)/build" -mindepth 2 -ma
MT_BUILD_TESTS = $(shell find "$(MT_BUILD_HOME)/mousetrap" -name "run_python_tests.py")
check-local:
- if command -v nosetests >/dev/null 2>&1 ; then \
- cd "$(MT_BUILD_HOME)" ; \
+ if command -v coverage >/dev/null 2>&1 ; then \
PYTHONPATH="$(MT_BUILD_HOME)" \
- nosetests --with-coverage --cover-package=mousetrap \
- --exclude=".*run_python_tests.py"; \
+ coverage run --include="*/mousetrap/*" \
+ --omit="*/__init__.py","*/test_*.py","*/run_python_tests.py" \
+ "$(MT_BUILD_TESTS)"; \
+ coverage report ; \
else \
PYTHONPATH="$(MT_BUILD_HOME)" \
"$(PYTHON)" "$(MT_BUILD_TESTS)"; \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]