MCPcopy
hub / github.com/ampproject/amphtml / RunIndexTest

Function RunIndexTest

validator/build.py:357–369  ·  view source on GitHub ↗

Runs the index_test.js, which tests the NodeJS API.

()

Source from the content-addressed store, hash-verified

355
356
357def RunIndexTest():
358 """Runs the index_test.js, which tests the NodeJS API.
359 """
360 logging.info('entering ...')
361 p = subprocess.Popen(['node', './index_test.js'],
362 stdout=subprocess.PIPE,
363 stderr=subprocess.PIPE,
364 cwd='js/nodejs')
365 (stdout, stderr) = p.communicate()
366 if p.returncode != 0:
367 Die('index_test.js failed. returncode=%d stdout="%s" stderr="%s"' %
368 (p.returncode, stdout, stderr))
369 logging.info('... done')
370
371
372def CompileValidatorTestMinified(out_dir):

Callers 1

MainFunction · 0.85

Calls 2

infoMethod · 0.80
DieFunction · 0.70

Tested by

no test coverage detected