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

Function runExperimentTests

build-system/pr-check/experiment-e2e-tests.js:25–38  ·  view source on GitHub ↗

* Runs tests for the given configuration and reports results for push builds. * @param {!Object} config

(config)

Source from the content-addressed store, hash-verified

23 * @param {!Object} config
24 */
25function runExperimentTests(config) {
26 try {
27 const defineFlag = `--define_experiment_constant ${config.define_experiment_constant}`;
28 const experimentFlag = `--experiment ${experiment}`;
29 generateCircleCiShardTestFileList(e2eTestPaths);
30 timedExecOrThrow(
31 `amp e2e --nobuild --minified --headless ${experimentFlag} ${defineFlag} --filelist ${FILELIST_PATH}`
32 );
33 } catch (e) {
34 if (e.status) {
35 process.exitCode = e.status;
36 }
37 }
38}
39
40/**
41 * Steps to run during push builds.

Callers 1

pushBuildWorkflowFunction · 0.70

Calls 1

Tested by

no test coverage detected