MCPcopy Create free account
hub / github.com/ampproject/amphtml / RunTests

Function RunTests

validator/build.py:569–583  ·  view source on GitHub ↗

Runs all the minified tests. Args: update_tests: a boolean indicating whether or not to update the test output files. out_dir: directory name of the output directory. Must not have slashes, dots, etc.

(update_tests, out_dir)

Source from the content-addressed store, hash-verified

567
568
569def RunTests(update_tests, out_dir):
570 """Runs all the minified tests.
571
572 Args:
573 update_tests: a boolean indicating whether or not to update the test
574 output files.
575 out_dir: directory name of the output directory. Must not have slashes,
576 dots, etc.
577 """
578 logging.info('entering ...')
579 env = os.environ.copy()
580 if update_tests:
581 env['UPDATE_VALIDATOR_TEST'] = '1'
582 subprocess.check_call(['node', '%s/test_runner' % out_dir], env=env)
583 logging.info('... success')
584
585
586def Main(parsed_args):

Callers 1

MainFunction · 0.85

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected