From ef4998692c753a635eba58975ae80834dfc14538 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Tue, 8 Dec 2020 06:48:58 -0800 Subject: Simplify test execution (#400) Use the stdlib standard entry point for running tests through the command: python -m unittest discover Docs: https://docs.python.org/3/library/unittest.html#unittest-test-discovery This automatically looks for files with the test_ prefix and runs them as tests. This removes the need for the custom test entry point script, all_tests.py. --- tests/README.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/README.txt') diff --git a/tests/README.txt b/tests/README.txt index 5196024..c540b7b 100644 --- a/tests/README.txt +++ b/tests/README.txt @@ -1 +1 @@ -Run 'python tests/all_tests.py' from the root pycparser directory +Run 'python -m unittest discover' from the root pycparser directory -- cgit v1.2.1