@elastic/synthetics 1.0.0-beta.2 → 1.0.0-beta.20

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.
Files changed (115) hide show
  1. package/CHANGELOG.md +228 -0
  2. package/NOTICE.txt +250 -0
  3. package/README.md +2 -1
  4. package/dist/cli.js +80 -49
  5. package/dist/cli.js.map +1 -1
  6. package/dist/common_types.d.ts +77 -10
  7. package/dist/common_types.d.ts.map +1 -1
  8. package/dist/config.d.ts +2 -5
  9. package/dist/config.d.ts.map +1 -1
  10. package/dist/config.js.map +1 -1
  11. package/dist/core/expect.d.ts +177 -0
  12. package/dist/core/expect.d.ts.map +1 -0
  13. package/dist/core/expect.js +33 -0
  14. package/dist/core/expect.js.map +1 -0
  15. package/dist/core/gatherer.d.ts +4 -7
  16. package/dist/core/gatherer.d.ts.map +1 -1
  17. package/dist/core/gatherer.js +33 -9
  18. package/dist/core/gatherer.js.map +1 -1
  19. package/dist/core/index.d.ts +5 -5
  20. package/dist/core/index.d.ts.map +1 -1
  21. package/dist/core/index.js +1 -1
  22. package/dist/core/index.js.map +1 -1
  23. package/dist/core/logger.d.ts +0 -1
  24. package/dist/core/logger.d.ts.map +1 -1
  25. package/dist/core/logger.js +2 -15
  26. package/dist/core/logger.js.map +1 -1
  27. package/dist/core/runner.d.ts +54 -45
  28. package/dist/core/runner.d.ts.map +1 -1
  29. package/dist/core/runner.js +173 -63
  30. package/dist/core/runner.js.map +1 -1
  31. package/dist/dsl/journey.d.ts +13 -4
  32. package/dist/dsl/journey.d.ts.map +1 -1
  33. package/dist/dsl/journey.js +40 -1
  34. package/dist/dsl/journey.js.map +1 -1
  35. package/dist/formatter/javascript.d.ts +73 -0
  36. package/dist/formatter/javascript.d.ts.map +1 -0
  37. package/dist/formatter/javascript.js +274 -0
  38. package/dist/formatter/javascript.js.map +1 -0
  39. package/dist/helpers.d.ts +33 -12
  40. package/dist/helpers.d.ts.map +1 -1
  41. package/dist/helpers.js +100 -46
  42. package/dist/helpers.js.map +1 -1
  43. package/dist/index.d.ts +8 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +6 -7
  46. package/dist/index.js.map +1 -1
  47. package/dist/parse_args.d.ts +5 -2
  48. package/dist/parse_args.d.ts.map +1 -1
  49. package/dist/parse_args.js +59 -16
  50. package/dist/parse_args.js.map +1 -1
  51. package/dist/plugins/browser-console.d.ts +5 -8
  52. package/dist/plugins/browser-console.d.ts.map +1 -1
  53. package/dist/plugins/browser-console.js +26 -7
  54. package/dist/plugins/browser-console.js.map +1 -1
  55. package/dist/plugins/network.d.ts +20 -20
  56. package/dist/plugins/network.d.ts.map +1 -1
  57. package/dist/plugins/network.js +110 -108
  58. package/dist/plugins/network.js.map +1 -1
  59. package/dist/plugins/performance.d.ts +5 -5
  60. package/dist/plugins/performance.d.ts.map +1 -1
  61. package/dist/plugins/performance.js +5 -5
  62. package/dist/plugins/performance.js.map +1 -1
  63. package/dist/plugins/plugin-manager.d.ts +11 -11
  64. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  65. package/dist/plugins/plugin-manager.js +40 -24
  66. package/dist/plugins/plugin-manager.js.map +1 -1
  67. package/dist/plugins/tracing.d.ts +10 -25
  68. package/dist/plugins/tracing.d.ts.map +1 -1
  69. package/dist/plugins/tracing.js +40 -26
  70. package/dist/plugins/tracing.js.map +1 -1
  71. package/dist/reporters/base.d.ts +0 -1
  72. package/dist/reporters/base.d.ts.map +1 -1
  73. package/dist/reporters/base.js +22 -23
  74. package/dist/reporters/base.js.map +1 -1
  75. package/dist/reporters/json.d.ts +43 -7
  76. package/dist/reporters/json.d.ts.map +1 -1
  77. package/dist/reporters/json.js +181 -35
  78. package/dist/reporters/json.js.map +1 -1
  79. package/dist/sdk/lh-trace-processor.d.ts +304 -0
  80. package/dist/sdk/lh-trace-processor.d.ts.map +1 -0
  81. package/dist/sdk/lh-trace-processor.js +832 -0
  82. package/dist/sdk/lh-trace-processor.js.map +1 -0
  83. package/dist/sdk/trace-metrics.d.ts +61 -0
  84. package/dist/sdk/trace-metrics.d.ts.map +1 -0
  85. package/dist/sdk/trace-metrics.js +252 -0
  86. package/dist/sdk/trace-metrics.js.map +1 -0
  87. package/dist/sdk/trace-processor.d.ts +106 -0
  88. package/dist/sdk/trace-processor.d.ts.map +1 -0
  89. package/dist/sdk/trace-processor.js +74 -0
  90. package/dist/sdk/trace-processor.js.map +1 -0
  91. package/dist/tsconfig.tsbuildinfo +1 -1575
  92. package/package.json +24 -13
  93. package/src/cli.ts +68 -45
  94. package/src/common_types.ts +92 -10
  95. package/src/config.ts +2 -5
  96. package/src/core/expect.ts +187 -0
  97. package/src/core/gatherer.ts +44 -23
  98. package/src/core/index.ts +6 -6
  99. package/src/core/logger.ts +1 -12
  100. package/src/core/runner.ts +259 -112
  101. package/src/dsl/journey.ts +28 -6
  102. package/src/formatter/javascript.ts +330 -0
  103. package/src/helpers.ts +114 -24
  104. package/src/index.ts +7 -6
  105. package/src/parse_args.ts +97 -22
  106. package/src/plugins/browser-console.ts +30 -13
  107. package/src/plugins/network.ts +137 -144
  108. package/src/plugins/performance.ts +7 -7
  109. package/src/plugins/plugin-manager.ts +47 -36
  110. package/src/plugins/tracing.ts +43 -54
  111. package/src/reporters/base.ts +24 -23
  112. package/src/reporters/json.ts +251 -41
  113. package/src/sdk/lh-trace-processor.ts +1033 -0
  114. package/src/sdk/trace-metrics.ts +287 -0
  115. package/src/sdk/trace-processor.ts +147 -0
@@ -1 +1 @@
1
- {"version":3,"file":"gatherer.d.ts","sourceRoot":"","sources":["../../src/core/gatherer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EACL,UAAU,EAEV,eAAe,EACf,sBAAsB,EACtB,IAAI,EACL,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,oBAAY,MAAM,GAAG;IACnB,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,sBAAsB,CAAC;IAChC,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,qBAAa,QAAQ;IACnB,MAAM,CAAC,OAAO,EAAE,eAAe,CAAC;WAEnB,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC;IAmB9D;;;OAGG;WACU,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU;WAWlD,OAAO,CAAC,MAAM,EAAE,MAAM;WAItB,IAAI;CAMlB"}
1
+ {"version":3,"file":"gatherer.d.ts","sourceRoot":"","sources":["../../src/core/gatherer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAY,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC;;;GAGG;AACH,qBAAa,QAAQ;IACnB,MAAM,CAAC,OAAO,EAAE,eAAe,CAAC;WAEnB,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC;WA6BjD,YAAY;WAMZ,oBAAoB,CAC/B,OAAO,EAAE,cAAc,EACvB,iBAAiB,EAAE,UAAU,CAAC,mBAAmB,CAAC;IAcpD;;;OAGG;WACU,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU;WAYlD,OAAO,CAAC,MAAM,EAAE,MAAM;WAItB,IAAI;CAMlB"}
@@ -34,36 +34,60 @@ const logger_1 = require("./logger");
34
34
  */
35
35
  class Gatherer {
36
36
  static async setupDriver(options) {
37
+ var _a;
38
+ logger_1.log('Gatherer: setup driver');
39
+ const { wsEndpoint, playwrightOptions, networkConditions } = options;
37
40
  if (Gatherer.browser == null) {
38
- const { wsEndpoint, headless, sandbox = false } = options;
39
41
  if (wsEndpoint) {
40
42
  logger_1.log(`Gatherer: connecting to WS endpoint: ${wsEndpoint}`);
41
43
  Gatherer.browser = await playwright_chromium_1.chromium.connect({ wsEndpoint });
42
44
  }
43
45
  else {
44
46
  Gatherer.browser = await playwright_chromium_1.chromium.launch({
45
- headless,
46
- chromiumSandbox: sandbox,
47
+ ...playwrightOptions,
48
+ args: [
49
+ ...((playwrightOptions === null || playwrightOptions === void 0 ? void 0 : playwrightOptions.headless) ? ['--disable-gpu'] : []),
50
+ ...((_a = playwrightOptions === null || playwrightOptions === void 0 ? void 0 : playwrightOptions.args) !== null && _a !== void 0 ? _a : []),
51
+ ],
47
52
  });
48
53
  }
49
54
  }
50
- const context = await Gatherer.browser.newContext();
55
+ const context = await Gatherer.browser.newContext({
56
+ ...playwrightOptions,
57
+ userAgent: await Gatherer.getUserAgent(),
58
+ });
59
+ await Gatherer.setNetworkConditions(context, networkConditions);
51
60
  const page = await context.newPage();
52
61
  const client = await context.newCDPSession(page);
53
62
  return { browser: Gatherer.browser, context, page, client };
54
63
  }
64
+ static async getUserAgent() {
65
+ const session = await Gatherer.browser.newBrowserCDPSession();
66
+ const { userAgent } = await session.send('Browser.getVersion');
67
+ return userAgent + ' Elastic/Synthetics';
68
+ }
69
+ static async setNetworkConditions(context, networkConditions) {
70
+ if (networkConditions) {
71
+ context.on('page', async (page) => {
72
+ const context = page.context();
73
+ const client = await context.newCDPSession(page);
74
+ await client.send('Network.emulateNetworkConditions', networkConditions);
75
+ });
76
+ }
77
+ }
55
78
  /**
56
79
  * Starts recording all events related to the v8 devtools protocol
57
80
  * https://chromedevtools.github.io/devtools-protocol/v8/
58
81
  */
59
82
  static async beginRecording(driver, options) {
60
83
  logger_1.log('Gatherer: started recording');
61
- const { filmstrips, network, metrics } = options;
84
+ const { network, metrics } = options;
62
85
  const pluginManager = new plugins_1.PluginManager(driver);
63
- pluginManager.start('browserconsole');
64
- filmstrips && (await pluginManager.start('trace'));
65
- network && (await pluginManager.start('network'));
66
- metrics && (await pluginManager.start('performance'));
86
+ pluginManager.registerAll(options);
87
+ const plugins = [await pluginManager.start('browserconsole')];
88
+ network && plugins.push(await pluginManager.start('network'));
89
+ metrics && plugins.push(await pluginManager.start('performance'));
90
+ await Promise.all(plugins);
67
91
  return pluginManager;
68
92
  }
69
93
  static async dispose(driver) {
@@ -1 +1 @@
1
- {"version":3,"file":"gatherer.js","sourceRoot":"","sources":["../../src/core/gatherer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAEH,6DAM6B;AAC7B,wCAA2C;AAE3C,qCAA+B;AAS/B;;;GAGG;AACH,MAAa,QAAQ;IAGnB,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,OAAmB;QAC1C,IAAI,QAAQ,CAAC,OAAO,IAAI,IAAI,EAAE;YAC5B,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC;YAC1D,IAAI,UAAU,EAAE;gBACd,YAAG,CAAC,wCAAwC,UAAU,EAAE,CAAC,CAAC;gBAC1D,QAAQ,CAAC,OAAO,GAAG,MAAM,8BAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC;aAC3D;iBAAM;gBACL,QAAQ,CAAC,OAAO,GAAG,MAAM,8BAAQ,CAAC,MAAM,CAAC;oBACvC,QAAQ;oBACR,eAAe,EAAE,OAAO;iBACzB,CAAC,CAAC;aACJ;SACF;QACD,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACpD,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;QACrC,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,IAA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E,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC3B,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAc;QACjC,MAAM,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC/B,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,IAAI;QACf,IAAI,QAAQ,CAAC,OAAO,EAAE;YACpB,MAAM,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YAC/B,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC;SACzB;IACH,CAAC;CACF;AAhFD,4BAgFC"}
@@ -24,12 +24,12 @@
24
24
  */
25
25
  import { Journey, JourneyCallback, JourneyOptions } from '../dsl';
26
26
  import Runner from './runner';
27
- import { VoidCallback } from '../common_types';
27
+ import { VoidCallback, HooksCallback } from '../common_types';
28
28
  export declare const runner: Runner;
29
29
  export declare const journey: (options: JourneyOptions | string, callback: JourneyCallback) => Journey;
30
30
  export declare const step: (name: string, callback: VoidCallback) => import("../dsl").Step;
31
- export declare const beforeAll: (callback: VoidCallback) => void;
32
- export declare const afterAll: (callback: VoidCallback) => void;
33
- export declare const before: (callback: VoidCallback) => void;
34
- export declare const after: (callback: VoidCallback) => void;
31
+ export declare const beforeAll: (callback: HooksCallback) => void;
32
+ export declare const afterAll: (callback: HooksCallback) => void;
33
+ export declare const before: (callback: HooksCallback) => void;
34
+ export declare const after: (callback: HooksCallback) => void;
35
35
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAY/C,eAAO,MAAM,MAAM,EAAE,MAAkC,CAAC;AAExD,eAAO,MAAM,OAAO,YACT,cAAc,GAAG,MAAM,YACtB,eAAe,YAS1B,CAAC;AAEF,eAAO,MAAM,IAAI,SAAU,MAAM,YAAY,YAAY,0BAGxD,CAAC;AAEF,eAAO,MAAM,SAAS,aAAc,YAAY,SAE/C,CAAC;AAEF,eAAO,MAAM,QAAQ,aAAc,YAAY,SAE9C,CAAC;AAEF,eAAO,MAAM,MAAM,aAAc,YAAY,SAK5C,CAAC;AAEF,eAAO,MAAM,KAAK,aAAc,YAAY,SAK3C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAY9D,eAAO,MAAM,MAAM,EAAE,MAAkC,CAAC;AAExD,eAAO,MAAM,OAAO,YACT,cAAc,GAAG,MAAM,YACtB,eAAe,YAS1B,CAAC;AAEF,eAAO,MAAM,IAAI,SAAU,MAAM,YAAY,YAAY,0BAGxD,CAAC;AAEF,eAAO,MAAM,SAAS,aAAc,aAAa,SAEhD,CAAC;AAEF,eAAO,MAAM,QAAQ,aAAc,aAAa,SAE/C,CAAC;AAEF,eAAO,MAAM,MAAM,aAAc,aAAa,SAK7C,CAAC;AAEF,eAAO,MAAM,KAAK,aAAc,aAAa,SAK5C,CAAC"}
@@ -41,7 +41,7 @@ if (!global[SYNTHETICS_RUNNER]) {
41
41
  }
42
42
  exports.runner = global[SYNTHETICS_RUNNER];
43
43
  const journey = (options, callback) => {
44
- logger_1.log(`register journey: ${options}`);
44
+ logger_1.log(`register journey: ${JSON.stringify(options)}`);
45
45
  if (typeof options === 'string') {
46
46
  options = { name: options, id: options };
47
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;;;;AAEH,gCAAkE;AAClE,sDAA8B;AAE9B,qCAA+B;AAE/B;;;GAGG;AACH,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;AAC1D,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE;IAC9B,MAAM,CAAC,iBAAiB,CAAC,GAAG,IAAI,gBAAM,EAAE,CAAC;CAC1C;AAEY,QAAA,MAAM,GAAW,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAEjD,MAAM,OAAO,GAAG,CACrB,OAAgC,EAChC,QAAyB,EACzB,EAAE;IACF,YAAG,CAAC,qBAAqB,OAAO,EAAE,CAAC,CAAC;IACpC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;KAC1C;IACD,MAAM,CAAC,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACzC,cAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACrB,OAAO,CAAC,CAAC;AACX,CAAC,CAAC;AAXW,QAAA,OAAO,WAWlB;AAEK,MAAM,IAAI,GAAG,CAAC,IAAY,EAAE,QAAsB,EAAE,EAAE;;IAC3D,YAAG,CAAC,kBAAkB,IAAI,EAAE,CAAC,CAAC;IAC9B,OAAO,MAAA,cAAM,CAAC,cAAc,0CAAE,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AACxD,CAAC,CAAC;AAHW,QAAA,IAAI,QAGf;AAEK,MAAM,SAAS,GAAG,CAAC,QAAsB,EAAE,EAAE;IAClD,cAAM,CAAC,OAAO,CAAC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ALW,QAAA,MAAM,UAKjB;AAEK,MAAM,KAAK,GAAG,CAAC,QAAuB,EAAE,EAAE;IAC/C,IAAI,CAAC,cAAM,CAAC,cAAc,EAAE;QAC1B,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;KACnE;IACD,OAAO,cAAM,CAAC,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC1D,CAAC,CAAC;AALW,QAAA,KAAK,SAKhB"}
@@ -22,6 +22,5 @@
22
22
  * THE SOFTWARE.
23
23
  *
24
24
  */
25
- export declare const setLogger: (fd: number) => any;
26
25
  export declare function log(msg: any): void;
27
26
  //# sourceMappingURL=logger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/core/logger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AASH,eAAO,MAAM,SAAS,OAAQ,MAAM,QAKnC,CAAC;AAEF,wBAAgB,GAAG,CAAC,GAAG,KAAA,QAStB"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/core/logger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAKH,wBAAgB,GAAG,CAAC,GAAG,KAAA,QAStB"}
@@ -23,23 +23,10 @@
23
23
  * THE SOFTWARE.
24
24
  *
25
25
  */
26
- var __importDefault = (this && this.__importDefault) || function (mod) {
27
- return (mod && mod.__esModule) ? mod : { "default": mod };
28
- };
29
26
  Object.defineProperty(exports, "__esModule", { value: true });
30
- exports.log = exports.setLogger = void 0;
31
- const sonic_boom_1 = __importDefault(require("sonic-boom"));
27
+ exports.log = void 0;
32
28
  const colors_1 = require("kleur/colors");
33
29
  const helpers_1 = require("../helpers");
34
- const defaultFd = process.stdout.fd;
35
- let logger = new sonic_boom_1.default({ fd: defaultFd, sync: true });
36
- const setLogger = (fd) => {
37
- if (fd && fd !== defaultFd) {
38
- logger = new sonic_boom_1.default({ fd });
39
- }
40
- return logger;
41
- };
42
- exports.setLogger = setLogger;
43
30
  function log(msg) {
44
31
  if (!process.env.DEBUG || !msg) {
45
32
  return;
@@ -48,7 +35,7 @@ function log(msg) {
48
35
  msg = JSON.stringify(msg);
49
36
  }
50
37
  const time = colors_1.dim(colors_1.cyan(`at ${parseInt(String(helpers_1.now()))} ms `));
51
- logger.write(time + colors_1.italic(colors_1.grey(msg)) + '\n');
38
+ console.log(time + colors_1.italic(colors_1.grey(msg)) + '\n');
52
39
  }
53
40
  exports.log = log;
54
41
  //# sourceMappingURL=logger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/core/logger.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;;;;AAEH,4DAAmC;AACnC,yCAAuD;AACvD,wCAAiC;AAEjC,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;AACpC,IAAI,MAAM,GAAG,IAAI,oBAAS,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAEnD,MAAM,SAAS,GAAG,CAAC,EAAU,EAAE,EAAE;IACtC,IAAI,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE;QAC1B,MAAM,GAAG,IAAI,oBAAS,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;KAChC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AALW,QAAA,SAAS,aAKpB;AAEF,SAAgB,GAAG,CAAC,GAAG;IACrB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,GAAG,EAAE;QAC9B,OAAO;KACR;IACD,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;KAC3B;IACD,MAAM,IAAI,GAAG,YAAG,CAAC,aAAI,CAAC,MAAM,QAAQ,CAAC,MAAM,CAAC,aAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5D,MAAM,CAAC,KAAK,CAAC,IAAI,GAAG,eAAM,CAAC,aAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AAChD,CAAC;AATD,kBASC"}
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/core/logger.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAEH,yCAAuD;AACvD,wCAAiC;AAEjC,SAAgB,GAAG,CAAC,GAAG;IACrB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,GAAG,EAAE;QAC9B,OAAO;KACR;IACD,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;KAC3B;IACD,MAAM,IAAI,GAAG,YAAG,CAAC,aAAI,CAAC,MAAM,QAAQ,CAAC,MAAM,CAAC,aAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5D,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,eAAM,CAAC,aAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AAC/C,CAAC;AATD,kBASC"}
@@ -27,92 +27,101 @@ import { EventEmitter } from 'events';
27
27
  import { Journey } from '../dsl/journey';
28
28
  import { Step } from '../dsl/step';
29
29
  import { Reporter } from '../reporters';
30
- import { StatusValue, FilmStrip, NetworkInfo, VoidCallback, CliArgs } from '../common_types';
31
- import { BrowserMessage, PluginManager } from '../plugins';
32
- import { Metrics } from '../plugins';
33
- import { Driver } from './gatherer';
34
- export declare type RunOptions = Omit<CliArgs, 'debug' | 'json' | 'pattern' | 'inline' | 'require' | 'suiteParams' | 'reporter' | 'environment'> & {
35
- params?: RunParamaters;
30
+ import { StatusValue, HooksCallback, Params, NetworkConditions, PluginOutput, CliArgs, HooksArgs, PlaywrightOptions, Driver } from '../common_types';
31
+ import { PageMetrics, PluginManager } from '../plugins';
32
+ export declare type RunOptions = Omit<CliArgs, 'debug' | 'pattern' | 'inline' | 'require' | 'reporter' | 'richEvents' | 'capability' | 'sandbox' | 'headless' | 'throttling'> & {
33
+ environment?: string;
34
+ playwrightOptions?: PlaywrightOptions;
35
+ networkConditions?: NetworkConditions;
36
36
  reporter?: CliArgs['reporter'] | Reporter;
37
37
  };
38
- declare type RunParamaters = {
39
- environment: string;
40
- } & Record<string, unknown>;
41
- declare type BaseContext = {
42
- params?: RunParamaters;
38
+ declare type HookType = 'beforeAll' | 'afterAll';
39
+ export declare type SuiteHooks = Record<HookType, Array<HooksCallback>>;
40
+ declare type JourneyContext = {
41
+ params?: Params;
43
42
  start: number;
44
- end?: number;
45
- };
46
- declare type JourneyContext = BaseContext & {
47
43
  driver: Driver;
48
44
  pluginManager: PluginManager;
49
45
  };
50
46
  declare type StepResult = {
51
47
  status: StatusValue;
52
48
  url?: string;
53
- metrics?: Metrics;
54
49
  error?: Error;
55
- screenshot?: string;
50
+ pagemetrics?: PageMetrics;
51
+ filmstrips?: PluginOutput['filmstrips'];
52
+ metrics?: PluginOutput['metrics'];
53
+ traces?: PluginOutput['traces'];
56
54
  };
57
55
  declare type JourneyResult = {
58
56
  status: StatusValue;
59
57
  error?: Error;
58
+ networkinfo?: PluginOutput['networkinfo'];
59
+ browserconsole?: PluginOutput['browserconsole'];
60
60
  };
61
61
  declare type RunResult = Record<string, JourneyResult>;
62
- declare type HookType = 'beforeAll' | 'afterAll';
63
- export declare type SuiteHooks = Record<HookType, Array<VoidCallback>>;
62
+ interface StepEvent {
63
+ step: Step;
64
+ journey: Journey;
65
+ }
66
+ interface JourneyEvent {
67
+ journey: Journey;
68
+ timestamp: number;
69
+ params?: Params;
70
+ }
64
71
  interface Events {
65
72
  start: {
66
73
  numJourneys: number;
74
+ networkConditions?: NetworkConditions;
67
75
  };
68
76
  'journey:register': {
69
77
  journey: Journey;
70
78
  };
71
- 'journey:start': {
72
- journey: Journey;
79
+ 'journey:start': JourneyEvent;
80
+ 'journey:end': JourneyEvent & JourneyResult & {
81
+ start: number;
82
+ end: number;
83
+ options: RunOptions;
73
84
  timestamp: number;
74
- params: RunParamaters;
75
- };
76
- 'journey:end': BaseContext & JourneyResult & {
77
- journey: Journey;
78
- filmstrips?: Array<FilmStrip>;
79
- networkinfo?: Array<NetworkInfo>;
80
- browserconsole?: Array<BrowserMessage>;
81
85
  };
82
- 'step:start': {
83
- journey: Journey;
84
- step: Step;
85
- };
86
- 'step:end': StepResult & {
86
+ 'journey:end:reported': unknown;
87
+ 'step:start': StepEvent;
88
+ 'step:end': StepEvent & StepResult & {
87
89
  start: number;
88
90
  end: number;
89
- journey: Journey;
90
- step: Step;
91
91
  };
92
92
  end: unknown;
93
93
  }
94
- export default class Runner {
94
+ export default interface Runner {
95
+ on<K extends keyof Events>(name: K, listener: (v: Events[K]) => void): this;
96
+ emit<K extends keyof Events>(event: K, args: Events[K]): boolean;
97
+ }
98
+ export default class Runner extends EventEmitter {
95
99
  active: boolean;
96
- eventEmitter: EventEmitter;
97
100
  currentJourney?: Journey;
98
101
  journeys: Journey[];
99
102
  hooks: SuiteHooks;
103
+ hookError: Error | undefined;
104
+ static screenshotPath: string;
100
105
  static createContext(options: RunOptions): Promise<JourneyContext>;
101
- addHook(type: HookType, callback: VoidCallback): void;
106
+ captureScreenshot(page: Driver['page'], step: Step): Promise<void>;
107
+ addHook(type: HookType, callback: HooksCallback): void;
102
108
  addJourney(journey: Journey): void;
103
- emit<K extends keyof Events>(e: K, v: Events[K]): void;
104
- on<K extends keyof Events>(e: K, cb: (v: Events[K]) => void): void;
105
- runBeforeAllHook(): Promise<void>;
106
- runAfterAllHook(): Promise<void>;
107
- runBeforeHook(journey: Journey): Promise<void>;
108
- runAfterHook(journey: Journey): Promise<void>;
109
+ runBeforeAllHook(args: HooksArgs): Promise<void>;
110
+ runAfterAllHook(args: HooksArgs): Promise<void>;
111
+ runBeforeHook(journey: Journey, args: HooksArgs): Promise<void>;
112
+ runAfterHook(journey: Journey, args: HooksArgs): Promise<void>;
109
113
  runStep(step: Step, context: JourneyContext, options: RunOptions): Promise<StepResult>;
110
114
  runSteps(journey: Journey, context: JourneyContext, options: RunOptions): Promise<StepResult[]>;
111
115
  registerJourney(journey: Journey, context: JourneyContext): void;
112
- endJourney(journey: any, result: JourneyContext & JourneyResult): Promise<void>;
116
+ endJourney(journey: any, result: JourneyContext & JourneyResult, options: RunOptions): Promise<void>;
117
+ /**
118
+ * Simulate a journey run to capture errors in the beforeAll hook
119
+ */
120
+ runFakeJourney(journey: Journey, options: RunOptions): Promise<JourneyResult>;
113
121
  runJourney(journey: Journey, options: RunOptions): Promise<JourneyResult>;
122
+ init(options: RunOptions): Promise<void>;
114
123
  run(options: RunOptions): Promise<RunResult>;
115
- reset(): void;
124
+ reset(): Promise<void>;
116
125
  }
117
126
  export {};
118
127
  //# sourceMappingURL=runner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/core/runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAa,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,YAAY,EACZ,OAAO,EACR,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAsB,OAAO,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,MAAM,EAAY,MAAM,YAAY,CAAC;AAG9C,oBAAY,UAAU,GAA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