qa 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ import WebSocket from 'ws';
4
4
  import { getAuthenticatedClient } from '@codeless.qa/contracts/client';
5
5
  import { pullTestSuite } from '../api.js';
6
6
  import { getAccessToken } from '../auth.js';
7
- import { CLI_EPILOGUE, WORKER_URL } from '../constants.js';
7
+ import { CLI_EPILOGUE, WORKER_URL, PLATFORM_URL } from '../constants.js';
8
8
  const SUPPORTED_REPORTER = [
9
9
  'classic', 'doc', 'dot', 'dump', 'json', 'jsonstream', 'landing',
10
10
  'list', 'markdown', 'min', 'nyan', 'progress', 'silent', 'spec',
@@ -69,7 +69,7 @@ export const handler = async (argv) => {
69
69
  }
70
70
  console.error(error);
71
71
  });
72
- const success = await new Promise((resolve, reject) => {
72
+ const { success, sessionId } = await new Promise((resolve, reject) => {
73
73
  const reporterProcess = spawn('node', [require.resolve('tap-mocha-reporter'), reporter], {
74
74
  stdio: ['pipe', 'inherit', 'inherit']
75
75
  });
@@ -83,7 +83,7 @@ export const handler = async (argv) => {
83
83
  return reporterProcess.stdin.write(msg.value.log);
84
84
  }
85
85
  if (msg.type === 2) {
86
- return resolve(msg.value.success);
86
+ return resolve(msg.value);
87
87
  }
88
88
  if (msg.type === 4) {
89
89
  return reject(new Error(msg.value.error));
@@ -95,5 +95,6 @@ export const handler = async (argv) => {
95
95
  }
96
96
  });
97
97
  });
98
+ console.log(`➡️ See more test details at ${PLATFORM_URL}/api-testing/tests/${sessionId}`);
98
99
  process.exit(success ? 0 : 1);
99
100
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qa",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "author": "Christian Bromann <christian@codeless.qa>",
5
5
  "description": "Codeless QA CLI",
6
6
  "license": "Apache-2.0",