tests/performance/run.js
/** Initialize and start all tests on Chrome. */
Initialize and start all tests on Chrome.
Initialize and start all tests on Chrome .
async function start() {
  await initScripts();
  await initServers();
  onFinished = () => {
    const hasSucceededOnChrome = compareSamples();
    shutdown();
    if (!hasSucceededOnChrome) {
      console.error("Tests failed on Chrome");
      return process.exit(1);
    }
    return process.exit(0);
    //     
  };
  startAllTestsOnChrome();
}
async function start ( ) { await initScripts ( ) ; await initServers ( ) ; onFinished = ( ) => { const hasSucceededOnChrome = compareSamples ( ) ; shutdown ( ) ; if ( ! hasSucceededOnChrome ) { console . error ( "Tests failed on Chrome" ) ; return process . exit ( 1 ) ; } return process . exit ( 0 ) ; } ; startAllTestsOnChrome ( ) ; }
Initialize and start all tests on Chrome.
Initialize and start all tests on Chrome .
// eslint-disable-next-line no-console // TODO also run on Firefox? Despite my efforts, I did not succeed to run // tests on it. // onFinished = async () => { //   shutdown(); //   const hasSucceededOnFirefox = compareSamples(); //   if (!hasSucceededOnChrome || !hasSucceededOnFirefox) { //     // eslint-disable-next-line no-console //     console.error("Tests failed on:" + //                   (!hasSucceededOnChrome ? " Chrome" : "") + //                   (!hasSucceededOnFirefox ? " Firefox" : "")); //     return process.exit(1); //   } //   return process.exit(0); // }; // startAllTestsOnFirefox();