src/awp-core.js
/**
   * Run all gatherers and return a detailed response from a gatherer.
   * @param  {type} tests      description
   * @param  {type} gathererName description
   * @param  {type} options    description
   * @return {type}            description
   */
Run all gatherers and return a detailed response from a gatherer.
@param  {type} tests      description
@param  {type} gathererName description
@param  {type} options    description
@return {type}            description
Run all gatherers and return a detailed response from a gatherer . @param { type } tests description @param { type } gathererName description @param { type } options description @return { type } description
async runGathererInBatch(tests, gathererName, options) {
    let responseList = [];
    try {
      let gatherer = this.getGatherer(gathererName);
      await gatherer.runBatchAsync(tests, options).then(res => {
        if (!res) return [];
        responseList = res;
        return responseList;
      });
    } catch (error) {
      responseList = tests.map(test => {
        return {
          status: Status.ERROR,
          statusText: error.stack,
          metadata: {},
        };
      });
    }
    return responseList;
  }
async runGathererInBatch ( tests , gathererName , options ) { let responseList = [ ] ; try { let gatherer = this . getGatherer ( gathererName ) ; await gatherer . runBatchAsync ( tests , options ) . then ( res => { if ( ! res ) return [ ] ; responseList = res ; return responseList ; } ) ; } catch ( error ) { responseList = tests . map ( test => { return { status : Status . ERROR , statusText : error . stack , metadata : { } , } ; } ) ; } return responseList ; }
Run all gatherers and return a detailed response from a gatherer.
Run all gatherers and return a detailed response from a gatherer .
// If there's no response, it means that the specific gatherer doesn't // support runBatch. Hence it won't add any corresponding metrics to the // Result objects.