From 55e0ad9ae690f6d73b0caff7b813eb4d61195b94 Mon Sep 17 00:00:00 2001 From: LakshmiSwethaG Date: Wed, 5 Sep 2018 10:39:08 -0400 Subject: test: add node-report tests One test per each API, so that additional tests in future are modular. test/common/report.js contain common functions that tests leverage. PR-URL: https://github.com/nodejs/node/pull/22712 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Michael Dawson Reviewed-By: Vse Mozhet Byt --- test/common/index.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/common/index.js') diff --git a/test/common/index.js b/test/common/index.js index 72ad0c3b77..e7df290c3e 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -632,6 +632,12 @@ function skipIfInspectorDisabled() { } } +function skipIfReportDisabled() { + if (!process.config.variables.node_report) { + skip('Node Report is disabled'); + } +} + function skipIf32Bits() { if (bits < 64) { skip('The tested feature is not available in 32bit builds'); @@ -758,6 +764,7 @@ module.exports = { skipIf32Bits, skipIfEslintMissing, skipIfInspectorDisabled, + skipIfReportDisabled, skipIfWorker, get localhostIPv6() { return '::1'; }, -- cgit v1.2.3