diff --git a/test/helpers/verbose.js b/test/helpers/verbose.js index 379548b043..c14bcfb104 100644 --- a/test/helpers/verbose.js +++ b/test/helpers/verbose.js @@ -66,16 +66,15 @@ const normalizeDuration = stderr => stderr.replaceAll(/\(done in [^)]+\)/g, '(do export const getVerboseOption = (isVerbose, verbose = 'short') => ({verbose: isVerbose ? verbose : 'none'}); -export const fdNoneOption = {stdout: 'none', stderr: 'none'}; -export const fdShortOption = {stdout: 'short', stderr: 'none'}; -export const fdFullOption = {stdout: 'full', stderr: 'none'}; -export const fdStdoutNoneOption = {stdout: 'none', stderr: 'full'}; -export const fdStderrNoneOption = {stdout: 'full', stderr: 'none'}; -export const fdStderrShortOption = {stdout: 'none', stderr: 'short'}; -export const fdStderrFullOption = {stdout: 'none', stderr: 'full'}; -export const fd3NoneOption = {stdout: 'full', fd3: 'none'}; -export const fd3ShortOption = {stdout: 'none', fd3: 'short'}; -export const fd3FullOption = {stdout: 'none', fd3: 'full'}; +export const stdoutNoneOption = {stdout: 'none'}; +export const stdoutShortOption = {stdout: 'short'}; +export const stdoutFullOption = {stdout: 'full'}; +export const stderrNoneOption = {stderr: 'none'}; +export const stderrShortOption = {stderr: 'short'}; +export const stderrFullOption = {stderr: 'full'}; +export const fd3NoneOption = {fd3: 'none'}; +export const fd3ShortOption = {fd3: 'short'}; +export const fd3FullOption = {fd3: 'full'}; export const ipcNoneOption = {ipc: 'none'}; export const ipcShortOption = {ipc: 'short'}; export const ipcFullOption = {ipc: 'full'}; diff --git a/test/verbose/complete.js b/test/verbose/complete.js index 65a28b96f4..ea72214065 100644 --- a/test/verbose/complete.js +++ b/test/verbose/complete.js @@ -15,9 +15,18 @@ import { getCompletionLines, testTimestamp, getVerboseOption, - fdNoneOption, - fdShortOption, - fdFullOption, + stdoutNoneOption, + stdoutShortOption, + stdoutFullOption, + stderrNoneOption, + stderrShortOption, + stderrFullOption, + fd3NoneOption, + fd3ShortOption, + fd3FullOption, + ipcNoneOption, + ipcShortOption, + ipcFullOption, } from '../helpers/verbose.js'; setFixtureDirectory(); @@ -29,12 +38,24 @@ const testPrintCompletion = async (t, verbose, execaMethod) => { test('Prints completion, verbose "short"', testPrintCompletion, 'short', parentExecaAsync); test('Prints completion, verbose "full"', testPrintCompletion, 'full', parentExecaAsync); -test('Prints completion, verbose "short", fd-specific', testPrintCompletion, fdShortOption, parentExecaAsync); -test('Prints completion, verbose "full", fd-specific', testPrintCompletion, fdFullOption, parentExecaAsync); +test('Prints completion, verbose "short", fd-specific stdout', testPrintCompletion, stdoutShortOption, parentExecaAsync); +test('Prints completion, verbose "full", fd-specific stdout', testPrintCompletion, stdoutFullOption, parentExecaAsync); +test('Prints completion, verbose "short", fd-specific stderr', testPrintCompletion, stderrShortOption, parentExecaAsync); +test('Prints completion, verbose "full", fd-specific stderr', testPrintCompletion, stderrFullOption, parentExecaAsync); +test('Prints completion, verbose "short", fd-specific fd3', testPrintCompletion, fd3ShortOption, parentExecaAsync); +test('Prints completion, verbose "full", fd-specific fd3', testPrintCompletion, fd3FullOption, parentExecaAsync); +test('Prints completion, verbose "short", fd-specific ipc', testPrintCompletion, ipcShortOption, parentExecaAsync); +test('Prints completion, verbose "full", fd-specific ipc', testPrintCompletion, ipcFullOption, parentExecaAsync); test('Prints completion, verbose "short", sync', testPrintCompletion, 'short', parentExecaSync); test('Prints completion, verbose "full", sync', testPrintCompletion, 'full', parentExecaSync); -test('Prints completion, verbose "short", fd-specific, sync', testPrintCompletion, fdShortOption, parentExecaSync); -test('Prints completion, verbose "full", fd-specific, sync', testPrintCompletion, fdFullOption, parentExecaSync); +test('Prints completion, verbose "short", fd-specific stdout, sync', testPrintCompletion, stdoutShortOption, parentExecaSync); +test('Prints completion, verbose "full", fd-specific stdout, sync', testPrintCompletion, stdoutFullOption, parentExecaSync); +test('Prints completion, verbose "short", fd-specific stderr, sync', testPrintCompletion, stderrShortOption, parentExecaSync); +test('Prints completion, verbose "full", fd-specific stderr, sync', testPrintCompletion, stderrFullOption, parentExecaSync); +test('Prints completion, verbose "short", fd-specific fd3, sync', testPrintCompletion, fd3ShortOption, parentExecaSync); +test('Prints completion, verbose "full", fd-specific fd3, sync', testPrintCompletion, fd3FullOption, parentExecaSync); +test('Prints completion, verbose "short", fd-specific ipc, sync', testPrintCompletion, ipcShortOption, parentExecaSync); +test('Prints completion, verbose "full", fd-specific ipc, sync', testPrintCompletion, ipcFullOption, parentExecaSync); const testNoPrintCompletion = async (t, verbose, execaMethod) => { const {stderr} = await execaMethod('noop.js', [foobarString], {verbose}); @@ -43,11 +64,17 @@ const testNoPrintCompletion = async (t, verbose, execaMethod) => { test('Does not print completion, verbose "none"', testNoPrintCompletion, 'none', parentExecaAsync); test('Does not print completion, verbose default"', testNoPrintCompletion, undefined, parentExecaAsync); -test('Does not print completion, verbose "none", fd-specific', testNoPrintCompletion, fdNoneOption, parentExecaAsync); +test('Does not print completion, verbose "none", fd-specific stdout', testNoPrintCompletion, stdoutNoneOption, parentExecaAsync); +test('Does not print completion, verbose "none", fd-specific stderr', testNoPrintCompletion, stderrNoneOption, parentExecaAsync); +test('Does not print completion, verbose "none", fd-specific fd3', testNoPrintCompletion, fd3NoneOption, parentExecaAsync); +test('Does not print completion, verbose "none", fd-specific ipc', testNoPrintCompletion, ipcNoneOption, parentExecaAsync); test('Does not print completion, verbose default", fd-specific', testNoPrintCompletion, {}, parentExecaAsync); test('Does not print completion, verbose "none", sync', testNoPrintCompletion, 'none', parentExecaSync); test('Does not print completion, verbose default", sync', testNoPrintCompletion, undefined, parentExecaSync); -test('Does not print completion, verbose "none", fd-specific, sync', testNoPrintCompletion, fdNoneOption, parentExecaSync); +test('Does not print completion, verbose "none", fd-specific stdout, sync', testNoPrintCompletion, stdoutNoneOption, parentExecaSync); +test('Does not print completion, verbose "none", fd-specific stderr, sync', testNoPrintCompletion, stderrNoneOption, parentExecaSync); +test('Does not print completion, verbose "none", fd-specific fd3, sync', testNoPrintCompletion, fd3NoneOption, parentExecaSync); +test('Does not print completion, verbose "none", fd-specific ipc, sync', testNoPrintCompletion, ipcNoneOption, parentExecaSync); test('Does not print completion, verbose default", fd-specific, sync', testNoPrintCompletion, {}, parentExecaSync); const testPrintCompletionError = async (t, execaMethod) => { diff --git a/test/verbose/error.js b/test/verbose/error.js index 32be2f4e8f..92791dd9db 100644 --- a/test/verbose/error.js +++ b/test/verbose/error.js @@ -14,9 +14,18 @@ import { getErrorLines, testTimestamp, getVerboseOption, - fdNoneOption, - fdShortOption, - fdFullOption, + stdoutNoneOption, + stdoutShortOption, + stdoutFullOption, + stderrNoneOption, + stderrShortOption, + stderrFullOption, + fd3NoneOption, + fd3ShortOption, + fd3FullOption, + ipcNoneOption, + ipcShortOption, + ipcFullOption, } from '../helpers/verbose.js'; setFixtureDirectory(); @@ -30,12 +39,24 @@ const testPrintError = async (t, verbose, execaMethod) => { test('Prints error, verbose "short"', testPrintError, 'short', runErrorSubprocessAsync); test('Prints error, verbose "full"', testPrintError, 'full', runErrorSubprocessAsync); -test('Prints error, verbose "short", fd-specific', testPrintError, fdShortOption, runErrorSubprocessAsync); -test('Prints error, verbose "full", fd-specific', testPrintError, fdFullOption, runErrorSubprocessAsync); +test('Prints error, verbose "short", fd-specific stdout', testPrintError, stdoutShortOption, runErrorSubprocessAsync); +test('Prints error, verbose "full", fd-specific stdout', testPrintError, stdoutFullOption, runErrorSubprocessAsync); +test('Prints error, verbose "short", fd-specific stderr', testPrintError, stderrShortOption, runErrorSubprocessAsync); +test('Prints error, verbose "full", fd-specific stderr', testPrintError, stderrFullOption, runErrorSubprocessAsync); +test('Prints error, verbose "short", fd-specific fd3', testPrintError, fd3ShortOption, runErrorSubprocessAsync); +test('Prints error, verbose "full", fd-specific fd3', testPrintError, fd3FullOption, runErrorSubprocessAsync); +test('Prints error, verbose "short", fd-specific ipc', testPrintError, ipcShortOption, runErrorSubprocessAsync); +test('Prints error, verbose "full", fd-specific ipc', testPrintError, ipcFullOption, runErrorSubprocessAsync); test('Prints error, verbose "short", sync', testPrintError, 'short', runErrorSubprocessSync); test('Prints error, verbose "full", sync', testPrintError, 'full', runErrorSubprocessSync); -test('Prints error, verbose "short", fd-specific, sync', testPrintError, fdShortOption, runErrorSubprocessSync); -test('Prints error, verbose "full", fd-specific, sync', testPrintError, fdFullOption, runErrorSubprocessSync); +test('Prints error, verbose "short", fd-specific stdout, sync', testPrintError, stdoutShortOption, runErrorSubprocessSync); +test('Prints error, verbose "full", fd-specific stdout, sync', testPrintError, stdoutFullOption, runErrorSubprocessSync); +test('Prints error, verbose "short", fd-specific stderr, sync', testPrintError, stderrShortOption, runErrorSubprocessSync); +test('Prints error, verbose "full", fd-specific stderr, sync', testPrintError, stderrFullOption, runErrorSubprocessSync); +test('Prints error, verbose "short", fd-specific fd3, sync', testPrintError, fd3ShortOption, runErrorSubprocessSync); +test('Prints error, verbose "full", fd-specific fd3, sync', testPrintError, fd3FullOption, runErrorSubprocessSync); +test('Prints error, verbose "short", fd-specific ipc, sync', testPrintError, ipcShortOption, runErrorSubprocessSync); +test('Prints error, verbose "full", fd-specific ipc, sync', testPrintError, ipcFullOption, runErrorSubprocessSync); const testNoPrintError = async (t, verbose, execaMethod) => { const stderr = await execaMethod(t, verbose, false); @@ -44,11 +65,17 @@ const testNoPrintError = async (t, verbose, execaMethod) => { test('Does not print error, verbose "none"', testNoPrintError, 'none', runErrorSubprocessAsync); test('Does not print error, verbose default', testNoPrintError, undefined, runErrorSubprocessAsync); -test('Does not print error, verbose "none", fd-specific', testNoPrintError, fdNoneOption, runErrorSubprocessAsync); +test('Does not print error, verbose "none", fd-specific stdout', testNoPrintError, stdoutNoneOption, runErrorSubprocessAsync); +test('Does not print error, verbose "none", fd-specific stderr', testNoPrintError, stderrNoneOption, runErrorSubprocessAsync); +test('Does not print error, verbose "none", fd-specific fd3', testNoPrintError, fd3NoneOption, runErrorSubprocessAsync); +test('Does not print error, verbose "none", fd-specific ipc', testNoPrintError, ipcNoneOption, runErrorSubprocessAsync); test('Does not print error, verbose default, fd-specific', testNoPrintError, {}, runErrorSubprocessAsync); test('Does not print error, verbose "none", sync', testNoPrintError, 'none', runErrorSubprocessSync); test('Does not print error, verbose default, sync', testNoPrintError, undefined, runErrorSubprocessSync); -test('Does not print error, verbose "none", fd-specific, sync', testNoPrintError, fdNoneOption, runErrorSubprocessSync); +test('Does not print error, verbose "none", fd-specific stdout, sync', testNoPrintError, stdoutNoneOption, runErrorSubprocessSync); +test('Does not print error, verbose "none", fd-specific stderr, sync', testNoPrintError, stderrNoneOption, runErrorSubprocessSync); +test('Does not print error, verbose "none", fd-specific fd3, sync', testNoPrintError, fd3NoneOption, runErrorSubprocessSync); +test('Does not print error, verbose "none", fd-specific ipc, sync', testNoPrintError, ipcNoneOption, runErrorSubprocessSync); test('Does not print error, verbose default, fd-specific, sync', testNoPrintError, {}, runErrorSubprocessSync); const testPrintNoError = async (t, execaMethod) => { diff --git a/test/verbose/output-buffer.js b/test/verbose/output-buffer.js index ebdb79babc..5feb79be34 100644 --- a/test/verbose/output-buffer.js +++ b/test/verbose/output-buffer.js @@ -5,8 +5,9 @@ import {parentExeca, parentExecaAsync, parentExecaSync} from '../helpers/nested. import { getOutputLine, testTimestamp, - fdFullOption, - fdStderrFullOption, + stdoutNoneOption, + stdoutFullOption, + stderrFullOption, } from '../helpers/verbose.js'; setFixtureDirectory(); @@ -18,20 +19,22 @@ const testPrintOutputNoBuffer = async (t, verbose, buffer, execaMethod) => { test('Prints stdout, buffer: false', testPrintOutputNoBuffer, 'full', false, parentExecaAsync); test('Prints stdout, buffer: false, fd-specific buffer', testPrintOutputNoBuffer, 'full', {stdout: false}, parentExecaAsync); -test('Prints stdout, buffer: false, fd-specific verbose', testPrintOutputNoBuffer, fdFullOption, false, parentExecaAsync); +test('Prints stdout, buffer: false, fd-specific verbose', testPrintOutputNoBuffer, stdoutFullOption, false, parentExecaAsync); test('Prints stdout, buffer: false, sync', testPrintOutputNoBuffer, 'full', false, parentExecaSync); test('Prints stdout, buffer: false, fd-specific buffer, sync', testPrintOutputNoBuffer, 'full', {stdout: false}, parentExecaSync); -test('Prints stdout, buffer: false, fd-specific verbose, sync', testPrintOutputNoBuffer, fdFullOption, false, parentExecaSync); +test('Prints stdout, buffer: false, fd-specific verbose, sync', testPrintOutputNoBuffer, stdoutFullOption, false, parentExecaSync); -const testPrintOutputNoBufferFalse = async (t, buffer, execaMethod) => { - const {stderr} = await execaMethod('noop.js', [foobarString], {verbose: fdStderrFullOption, buffer}); +const testPrintOutputNoBufferFalse = async (t, verbose, buffer, execaMethod) => { + const {stderr} = await execaMethod('noop.js', [foobarString], {verbose, buffer}); t.is(getOutputLine(stderr), undefined); }; -test('Does not print stdout, buffer: false, different fd', testPrintOutputNoBufferFalse, false, parentExecaAsync); -test('Does not print stdout, buffer: false, different fd, fd-specific buffer', testPrintOutputNoBufferFalse, {stdout: false}, parentExecaAsync); -test('Does not print stdout, buffer: false, different fd, sync', testPrintOutputNoBufferFalse, false, parentExecaSync); -test('Does not print stdout, buffer: false, different fd, fd-specific buffer, sync', testPrintOutputNoBufferFalse, {stdout: false}, parentExecaSync); +test('Does not print stdout, buffer: false, fd-specific none', testPrintOutputNoBufferFalse, stdoutNoneOption, false, parentExecaAsync); +test('Does not print stdout, buffer: false, different fd', testPrintOutputNoBufferFalse, stderrFullOption, false, parentExecaAsync); +test('Does not print stdout, buffer: false, different fd, fd-specific buffer', testPrintOutputNoBufferFalse, stderrFullOption, {stdout: false}, parentExecaAsync); +test('Does not print stdout, buffer: false, fd-specific none, sync', testPrintOutputNoBufferFalse, stdoutNoneOption, false, parentExecaSync); +test('Does not print stdout, buffer: false, different fd, sync', testPrintOutputNoBufferFalse, stderrFullOption, false, parentExecaSync); +test('Does not print stdout, buffer: false, different fd, fd-specific buffer, sync', testPrintOutputNoBufferFalse, stderrFullOption, {stdout: false}, parentExecaSync); const testPrintOutputNoBufferTransform = async (t, buffer, isSync) => { const {stderr} = await parentExeca('nested-transform.js', 'noop.js', [foobarString], { diff --git a/test/verbose/output-enable.js b/test/verbose/output-enable.js index 7e3a89f34b..0b2f81bbd4 100644 --- a/test/verbose/output-enable.js +++ b/test/verbose/output-enable.js @@ -15,12 +15,12 @@ import { getOutputLine, getOutputLines, testTimestamp, - fdShortOption, - fdFullOption, - fdStdoutNoneOption, - fdStderrNoneOption, - fdStderrShortOption, - fdStderrFullOption, + stdoutNoneOption, + stdoutShortOption, + stdoutFullOption, + stderrNoneOption, + stderrShortOption, + stderrFullOption, fd3NoneOption, fd3ShortOption, fd3FullOption, @@ -35,12 +35,12 @@ const testPrintOutput = async (t, verbose, fdNumber, execaMethod) => { test('Prints stdout, verbose "full"', testPrintOutput, 'full', 1, parentExecaAsync); test('Prints stderr, verbose "full"', testPrintOutput, 'full', 2, parentExecaAsync); -test('Prints stdout, verbose "full", fd-specific', testPrintOutput, fdFullOption, 1, parentExecaAsync); -test('Prints stderr, verbose "full", fd-specific', testPrintOutput, fdStderrFullOption, 2, parentExecaAsync); +test('Prints stdout, verbose "full", fd-specific', testPrintOutput, stdoutFullOption, 1, parentExecaAsync); +test('Prints stderr, verbose "full", fd-specific', testPrintOutput, stderrFullOption, 2, parentExecaAsync); test('Prints stdout, verbose "full", sync', testPrintOutput, 'full', 1, parentExecaSync); test('Prints stderr, verbose "full", sync', testPrintOutput, 'full', 2, parentExecaSync); -test('Prints stdout, verbose "full", fd-specific, sync', testPrintOutput, fdFullOption, 1, parentExecaSync); -test('Prints stderr, verbose "full", fd-specific, sync', testPrintOutput, fdStderrFullOption, 2, parentExecaSync); +test('Prints stdout, verbose "full", fd-specific, sync', testPrintOutput, stdoutFullOption, 1, parentExecaSync); +test('Prints stderr, verbose "full", fd-specific, sync', testPrintOutput, stderrFullOption, 2, parentExecaSync); const testNoPrintOutput = async (t, verbose, fdNumber, execaMethod) => { const {stderr} = await execaMethod('noop-fd.js', [`${fdNumber}`, foobarString], {verbose, ...fullStdio}); @@ -58,11 +58,11 @@ test('Does not print stdio[*], verbose "none"', testNoPrintOutput, 'none', 3, pa test('Does not print stdio[*], verbose "short"', testNoPrintOutput, 'short', 3, parentExecaAsync); test('Does not print stdio[*], verbose "full"', testNoPrintOutput, 'full', 3, parentExecaAsync); test('Does not print stdout, verbose default, fd-specific', testNoPrintOutput, {}, 1, parentExecaAsync); -test('Does not print stdout, verbose "none", fd-specific', testNoPrintOutput, fdStdoutNoneOption, 1, parentExecaAsync); -test('Does not print stdout, verbose "short", fd-specific', testNoPrintOutput, fdShortOption, 1, parentExecaAsync); +test('Does not print stdout, verbose "none", fd-specific', testNoPrintOutput, stdoutNoneOption, 1, parentExecaAsync); +test('Does not print stdout, verbose "short", fd-specific', testNoPrintOutput, stdoutShortOption, 1, parentExecaAsync); test('Does not print stderr, verbose default, fd-specific', testNoPrintOutput, {}, 2, parentExecaAsync); -test('Does not print stderr, verbose "none", fd-specific', testNoPrintOutput, fdStderrNoneOption, 2, parentExecaAsync); -test('Does not print stderr, verbose "short", fd-specific', testNoPrintOutput, fdStderrShortOption, 2, parentExecaAsync); +test('Does not print stderr, verbose "none", fd-specific', testNoPrintOutput, stderrNoneOption, 2, parentExecaAsync); +test('Does not print stderr, verbose "short", fd-specific', testNoPrintOutput, stderrShortOption, 2, parentExecaAsync); test('Does not print stdio[*], verbose default, fd-specific', testNoPrintOutput, {}, 3, parentExecaAsync); test('Does not print stdio[*], verbose "none", fd-specific', testNoPrintOutput, fd3NoneOption, 3, parentExecaAsync); test('Does not print stdio[*], verbose "short", fd-specific', testNoPrintOutput, fd3ShortOption, 3, parentExecaAsync); @@ -78,11 +78,11 @@ test('Does not print stdio[*], verbose "none", sync', testNoPrintOutput, 'none', test('Does not print stdio[*], verbose "short", sync', testNoPrintOutput, 'short', 3, parentExecaSync); test('Does not print stdio[*], verbose "full", sync', testNoPrintOutput, 'full', 3, parentExecaSync); test('Does not print stdout, verbose default, fd-specific, sync', testNoPrintOutput, {}, 1, parentExecaSync); -test('Does not print stdout, verbose "none", fd-specific, sync', testNoPrintOutput, fdStdoutNoneOption, 1, parentExecaSync); -test('Does not print stdout, verbose "short", fd-specific, sync', testNoPrintOutput, fdShortOption, 1, parentExecaSync); +test('Does not print stdout, verbose "none", fd-specific, sync', testNoPrintOutput, stdoutNoneOption, 1, parentExecaSync); +test('Does not print stdout, verbose "short", fd-specific, sync', testNoPrintOutput, stdoutShortOption, 1, parentExecaSync); test('Does not print stderr, verbose default, fd-specific, sync', testNoPrintOutput, {}, 2, parentExecaSync); -test('Does not print stderr, verbose "none", fd-specific, sync', testNoPrintOutput, fdStderrNoneOption, 2, parentExecaSync); -test('Does not print stderr, verbose "short", fd-specific, sync', testNoPrintOutput, fdStderrShortOption, 2, parentExecaSync); +test('Does not print stderr, verbose "none", fd-specific, sync', testNoPrintOutput, stderrNoneOption, 2, parentExecaSync); +test('Does not print stderr, verbose "short", fd-specific, sync', testNoPrintOutput, stderrShortOption, 2, parentExecaSync); test('Does not print stdio[*], verbose default, fd-specific, sync', testNoPrintOutput, {}, 3, parentExecaSync); test('Does not print stdio[*], verbose "none", fd-specific, sync', testNoPrintOutput, fd3NoneOption, 3, parentExecaSync); test('Does not print stdio[*], verbose "short", fd-specific, sync', testNoPrintOutput, fd3ShortOption, 3, parentExecaSync); diff --git a/test/verbose/start.js b/test/verbose/start.js index 7e391c8397..547e3a4eec 100644 --- a/test/verbose/start.js +++ b/test/verbose/start.js @@ -14,9 +14,18 @@ import { getCommandLines, testTimestamp, getVerboseOption, - fdNoneOption, - fdShortOption, - fdFullOption, + stdoutNoneOption, + stdoutShortOption, + stdoutFullOption, + stderrNoneOption, + stderrShortOption, + stderrFullOption, + fd3NoneOption, + fd3ShortOption, + fd3FullOption, + ipcNoneOption, + ipcShortOption, + ipcFullOption, } from '../helpers/verbose.js'; setFixtureDirectory(); @@ -28,16 +37,34 @@ const testPrintCommand = async (t, verbose, execaMethod) => { test('Prints command, verbose "short"', testPrintCommand, 'short', parentExecaAsync); test('Prints command, verbose "full"', testPrintCommand, 'full', parentExecaAsync); -test('Prints command, verbose "short", fd-specific', testPrintCommand, fdShortOption, parentExecaAsync); -test('Prints command, verbose "full", fd-specific', testPrintCommand, fdFullOption, parentExecaAsync); +test('Prints command, verbose "short", fd-specific stdout', testPrintCommand, stdoutShortOption, parentExecaAsync); +test('Prints command, verbose "full", fd-specific stdout', testPrintCommand, stdoutFullOption, parentExecaAsync); +test('Prints command, verbose "short", fd-specific stderr', testPrintCommand, stderrShortOption, parentExecaAsync); +test('Prints command, verbose "full", fd-specific stderr', testPrintCommand, stderrFullOption, parentExecaAsync); +test('Prints command, verbose "short", fd-specific fd3', testPrintCommand, fd3ShortOption, parentExecaAsync); +test('Prints command, verbose "full", fd-specific fd3', testPrintCommand, fd3FullOption, parentExecaAsync); +test('Prints command, verbose "short", fd-specific ipc', testPrintCommand, ipcShortOption, parentExecaAsync); +test('Prints command, verbose "full", fd-specific ipc', testPrintCommand, ipcFullOption, parentExecaAsync); test('Prints command, verbose "short", sync', testPrintCommand, 'short', parentExecaSync); test('Prints command, verbose "full", sync', testPrintCommand, 'full', parentExecaSync); -test('Prints command, verbose "short", fd-specific, sync', testPrintCommand, fdShortOption, parentExecaSync); -test('Prints command, verbose "full", fd-specific, sync', testPrintCommand, fdFullOption, parentExecaSync); +test('Prints command, verbose "short", fd-specific stdout, sync', testPrintCommand, stdoutShortOption, parentExecaSync); +test('Prints command, verbose "full", fd-specific stdout, sync', testPrintCommand, stdoutFullOption, parentExecaSync); +test('Prints command, verbose "short", fd-specific stderr, sync', testPrintCommand, stderrShortOption, parentExecaSync); +test('Prints command, verbose "full", fd-specific stderr, sync', testPrintCommand, stderrFullOption, parentExecaSync); +test('Prints command, verbose "short", fd-specific fd3, sync', testPrintCommand, fd3ShortOption, parentExecaSync); +test('Prints command, verbose "full", fd-specific fd3, sync', testPrintCommand, fd3FullOption, parentExecaSync); +test('Prints command, verbose "short", fd-specific ipc, sync', testPrintCommand, ipcShortOption, parentExecaSync); +test('Prints command, verbose "full", fd-specific ipc, sync', testPrintCommand, ipcFullOption, parentExecaSync); test('Prints command, verbose "short", worker', testPrintCommand, 'short', parentWorker); test('Prints command, verbose "full", worker', testPrintCommand, 'full', parentWorker); -test('Prints command, verbose "short", fd-specific, worker', testPrintCommand, fdShortOption, parentWorker); -test('Prints command, verbose "full", fd-specific, worker', testPrintCommand, fdFullOption, parentWorker); +test('Prints command, verbose "short", fd-specific stdout, worker', testPrintCommand, stdoutShortOption, parentWorker); +test('Prints command, verbose "full", fd-specific stdout, worker', testPrintCommand, stdoutFullOption, parentWorker); +test('Prints command, verbose "short", fd-specific stderr, worker', testPrintCommand, stderrShortOption, parentWorker); +test('Prints command, verbose "full", fd-specific stderr, worker', testPrintCommand, stderrFullOption, parentWorker); +test('Prints command, verbose "short", fd-specific fd3, worker', testPrintCommand, fd3ShortOption, parentWorker); +test('Prints command, verbose "full", fd-specific fd3, worker', testPrintCommand, fd3FullOption, parentWorker); +test('Prints command, verbose "short", fd-specific ipc, worker', testPrintCommand, ipcShortOption, parentWorker); +test('Prints command, verbose "full", fd-specific ipc, worker', testPrintCommand, ipcFullOption, parentWorker); const testNoPrintCommand = async (t, verbose, execaMethod) => { const {stderr} = await execaMethod('noop.js', [foobarString], {verbose}); @@ -46,11 +73,17 @@ const testNoPrintCommand = async (t, verbose, execaMethod) => { test('Does not print command, verbose "none"', testNoPrintCommand, 'none', parentExecaAsync); test('Does not print command, verbose default', testNoPrintCommand, undefined, parentExecaAsync); -test('Does not print command, verbose "none", fd-specific', testNoPrintCommand, fdNoneOption, parentExecaAsync); +test('Does not print command, verbose "none", fd-specific stdout', testNoPrintCommand, stdoutNoneOption, parentExecaAsync); +test('Does not print command, verbose "none", fd-specific stderr', testNoPrintCommand, stderrNoneOption, parentExecaAsync); +test('Does not print command, verbose "none", fd-specific fd3', testNoPrintCommand, fd3NoneOption, parentExecaAsync); +test('Does not print command, verbose "none", fd-specific ipc', testNoPrintCommand, ipcNoneOption, parentExecaAsync); test('Does not print command, verbose default, fd-specific', testNoPrintCommand, {}, parentExecaAsync); test('Does not print command, verbose "none", sync', testNoPrintCommand, 'none', parentExecaSync); test('Does not print command, verbose default, sync', testNoPrintCommand, undefined, parentExecaSync); -test('Does not print command, verbose "none", fd-specific, sync', testNoPrintCommand, fdNoneOption, parentExecaSync); +test('Does not print command, verbose "none", fd-specific stdout, sync', testNoPrintCommand, stdoutNoneOption, parentExecaSync); +test('Does not print command, verbose "none", fd-specific stderr, sync', testNoPrintCommand, stderrNoneOption, parentExecaSync); +test('Does not print command, verbose "none", fd-specific fd3, sync', testNoPrintCommand, fd3NoneOption, parentExecaSync); +test('Does not print command, verbose "none", fd-specific ipc, sync', testNoPrintCommand, ipcNoneOption, parentExecaSync); test('Does not print command, verbose default, fd-specific, sync', testNoPrintCommand, {}, parentExecaSync); const testPrintCommandError = async (t, execaMethod) => {