From d90196351ddb22b72cae4e3122e4ff2b87705396 Mon Sep 17 00:00:00 2001
From: vtexier <vit@free.fr>
Date: Wed, 31 Oct 2018 18:52:47 +0100
Subject: [PATCH] add test_filter argument to "make tests" command, example in
 README.rst

---
 Makefile   | 2 +-
 README.rst | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 7e9f8496..4d1db970 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ docs:
 
 # run tests
 tests:
-	python -m unittest
+	python -m unittest ${test_filter}
 
 # check static typing
 check:
diff --git a/README.rst b/README.rst
index 87cdb16e..b25fa858 100644
--- a/README.rst
+++ b/README.rst
@@ -62,10 +62,14 @@ Development
 
     make check
 
-* Run unit tests with::
+* Run all unit tests with::
 
     make tests
 
+* Run only some unit tests with::
+
+    make tests test_filter=tests.documents.test_block.TestBlock.test_fromraw
+
 Documentation
 -------------
 
-- 
GitLab