summaryrefslogtreecommitdiff
path: root/tools/setup_test.py
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2019-06-03 18:35:55 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-06-03 12:35:55 -0400
commit43c6c1a9f58a8d423a2d55092609e620f9765bcf (patch)
treef0bc5783b40bbde27dc52ff01552e21258e59324 /tools/setup_test.py
parentbbc8de0c7a6a086ea7b0b79c6f5b005f9f374a7d (diff)
Refactor test infrastructure (#2432)
* use subclass of unittest.TestCase for all test cases * allow to run single test file (eg. python tools/integration_tests.py) * test filtering (via --pattern/-p CLI flag) * use common CLI parser for all tests: usage: test.py [-h] [--failfast] [--verbose] [--executable EXECUTABLE] [--release] [--pattern PATTERN] [--build-dir BUILD_DIR] optional arguments: -h, --help show this help message and exit --failfast, -f Stop on first failure --verbose, -v Verbose output --executable EXECUTABLE Use external executable of Deno --release Test against release executable --pattern PATTERN, -p PATTERN Run tests that match provided pattern --build-dir BUILD_DIR Deno build directory * respect NO_COLOR variable
Diffstat (limited to 'tools/setup_test.py')
-rw-r--r--tools/setup_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/setup_test.py b/tools/setup_test.py
index e9d09de80..69e1ea349 100644
--- a/tools/setup_test.py
+++ b/tools/setup_test.py
@@ -6,7 +6,7 @@ from setup import gn_string, read_gn_args, write_gn_args
from shutil import rmtree
from tempfile import mktemp
-from util import DenoTestCase, test_main
+from test_util import DenoTestCase, run_tests
class TestSetup(DenoTestCase):
@@ -63,4 +63,4 @@ class TestSetup(DenoTestCase):
if __name__ == '__main__':
- test_main()
+ run_tests()