// Match provider manifests against wanted manifests airtap.manifests(wanted, function (err, manifests) { if (err) return fail(err) if (program.listBrowsers) { manifests.forEach(simplifyManifest) console.log(toYAML(manifests)) return } airtap.test(manifests, files, config) .on('error', fail) .on('context', function (context) { // Emits one session or more (on page reload) context.on('session', function (session) { // TODO (later): merge TAP from multiple sessions session.pipe(process.stdout, { end: false }) }) }) .on('complete', function (stats) { console.log('# %d of %d browsers ok', stats.pass, stats.count) process.exit(stats.ok ? 0 : 1) }) })