diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-09-19 14:48:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-19 14:48:05 -0400 |
commit | 56ac638d93c96712d6c624e60dcfa4540d334b18 (patch) | |
tree | b3b5b985cc5be83545d8883207ee614f23627ef8 /tools/test.py | |
parent | 1b1ae65a4a2acd55ead86c17e388f10a0e08938d (diff) |
Remove test.py, use cargo test as test frontend (#2967)
Fixes #2933
Diffstat (limited to 'tools/test.py')
-rwxr-xr-x | tools/test.py | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/tools/test.py b/tools/test.py deleted file mode 100755 index c3110c655..000000000 --- a/tools/test.py +++ /dev/null @@ -1,62 +0,0 @@ -#!/usr/bin/env python -# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -# Runs the full test suite. -# Usage: ./tools/test.py out/Debug -import os - -from benchmark_test import TestBenchmark -from deno_dir_test import TestDenoDir -from fetch_test import TestFetch -from fmt_test import TestFmt -from repl_test import TestRepl -from setup_test import TestSetup -from target_test import TestTarget -from unit_tests import JsUnitTests -from util_test import TestUtil -# NOTE: These tests are skipped on Windows -from is_tty_test import TestIsTty -from permission_prompt_test import permission_prompt_tests -from complex_permissions_test import complex_permissions_tests - -import http_server -from util import (enable_ansi_colors, build_path, RESET, FG_RED, FG_GREEN, - executable_suffix, rmtree, tests_path) -from test_util import parse_test_args, run_tests - - -def main(): - args = parse_test_args() - - deno_dir = os.path.join(args.build_dir, ".deno_test") - if os.path.isdir(deno_dir): - rmtree(deno_dir) - os.environ["DENO_DIR"] = deno_dir - - enable_ansi_colors() - - test_cases = [ - TestSetup, - TestUtil, - TestTarget, - JsUnitTests, - TestFetch, - TestRepl, - TestDenoDir, - TestBenchmark, - ] - - # TODO(ry) This test isn't working yet on github actions. - if "GH_ACTIONS" not in os.environ: - test_cases += [TestIsTty] - - test_cases += permission_prompt_tests() - test_cases += complex_permissions_tests() - # It is very slow, so do TestFmt at the end. - test_cases += [TestFmt] - - with http_server.spawn(): - run_tests(test_cases) - - -if __name__ == '__main__': - main() |