MCPcopy Create free account
hub / github.com/nodejs/node / FindTests

Function FindTests

deps/v8/tools/v8_presubmit.py:827–849  ·  view source on GitHub ↗
(workspace)

Source from the content-addressed store, hash-verified

825
826
827def FindTests(workspace):
828 scripts = []
829 # TODO(almuthanna): unskip valid tests when they are properly migrated
830 exclude = [
831 'tools/clang',
832 'tools/mb/mb_test.py',
833 'tools/cppgc/gen_cmake_test.py',
834 'tools/ignition/linux_perf_report_test.py',
835 'tools/ignition/bytecode_dispatches_report_test.py',
836 'tools/ignition/linux_perf_bytecode_annotate_test.py',
837 # TODO(https://crbug.com/430336825): Unskip once bug is resolved.
838 'tools/protoc_wrapper/protoc_wrapper_test.py',
839 ]
840 scripts_without_excluded = []
841 for root, dirs, files in os.walk(join(workspace, 'tools')):
842 for f in files:
843 if f.endswith('_test.py'):
844 fullpath = join(root, f)
845 scripts.append(fullpath)
846 for script in scripts:
847 if not any(exc_dir in script for exc_dir in exclude):
848 scripts_without_excluded.append(script)
849 return scripts_without_excluded
850
851
852def PyTests(workspace):

Callers 1

PyTestsFunction · 0.85

Calls 3

joinFunction · 0.90
walkMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected