Lines Matching refs:report
3 // Test producing a report via API call, using the no-hooks/no-signal interface.
9 const helper = require('../common/report');
13 process.report.directory = tmpdir.path;
25 process.report.writeReport();
31 process.report.writeReport(new Error('test error'));
39 process.report.writeReport(error);
46 process.report.writeReport(error);
52 const file = process.report.writeReport('custom-name-1.json');
62 const file = process.report.writeReport('custom-name-2.json',
73 process.report.filename = 'custom-name-3.json';
74 const file = process.report.writeReport();
76 const filename = path.join(process.report.directory, 'custom-name-3.json');
77 assert.strictEqual(file, process.report.filename);
85 process.report.writeReport(file);
92 process.report.writeReport('file', error);
98 const args = ['-e', 'process.report.writeReport("stdout")'];
108 const args = ['-e', 'process.report.writeReport("stderr")'];
114 const report = child.stderr.toString().split('Node.js report completed')[0];
115 helper.validateContent(report);
119 // Test the case where the report file cannot be opened.
121 const args = [`--report-directory=${reportDir}`,
123 'process.report.writeReport()'];
130 assert(stderr.includes('Failed to open Node.js report file:'));