trac-ticketlinks / Makefile

Diff from to
 
   [db=...]            variable for selecting database backend
   [test=...]          variable for selecting a single test file
-  [coverageopts=...]  variable containing extra optios for coverage
+  [testopts=...]      variable containing extra options for running tests
+  [coverageopts=...]  variable containing extra options for coverage
 
  ---------------- Standalone test server
 
 
 ifdef test
 all: status
-	python $(test)
+	python $(test) $(testopts)
 else
 all: help
 endif
 test: unit-test functional-test
 
 unit-test: Trac.egg-info
-	python ./trac/test.py --skip-functional-tests
+	python ./trac/test.py --skip-functional-tests $(testopts)
 
 functional-test: Trac.egg-info
-	python trac/tests/functional/__init__.py -v
+	python trac/tests/functional/__init__.py -v $(testopts)
 
 test-wiki:
-	python trac/tests/allwiki.py
+	python trac/tests/allwiki.py $(testopts)
 
 # ----------------------------------------------------------------------------
 #
 
 ifdef test
 test-coverage:
-	coverage run $(test)
+	coverage run $(test) $(testopts)
 else
 test-coverage: unit-test-coverage functional-test-coverage
 endif
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.