diff --git a/dist/index.js b/dist/index.js index b270999b4..ba9812fa4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -78981,6 +78981,7 @@ const runTestsUsingCommandLine = async () => { if (component) { cmd.push('--component') + cmd.push(component) } if (headed) { cmd.push('--headed') @@ -79087,7 +79088,7 @@ const runTests = async () => { record: getInputBool('record'), parallel: getInputBool('parallel'), quiet: getInputBool('quiet'), - component: getInputBool('component') + // component: getInputBool('component') } const cypressModulePath = require.resolve('cypress', { paths: [workingDirectory] }) || @@ -79153,6 +79154,10 @@ const runTests = async () => { cypressOptions.env = core.getInput('env') } + if (core.getInput('component')) { + cypressOptions.component = core.getInput('component') + } + if (cypressOptions.parallel || cypressOptions.group) { const { branch, buildId } = await getCiBuildId() if (branch) { @@ -79222,17 +79227,26 @@ const isSummaryEnabled = () => { } const generateSummary = async (testResults) => { + // const compenentTestTypeParameter = getInputBool('component', true) + + // console.log('testingType', getInputBool('component', true) ? 'component' : 'e2e') + + console.log('testingType', testResults.config.testingType) + if (!isSummaryEnabled()) { return testResults } + console.dir(testResults, {depth: null}); + const headers = [ { data: 'Result', header: true }, { data: 'Passed :white_check_mark:', header: true }, { data: 'Failed :x:', header: true }, { data: 'Pending :hand:', header: true }, { data: 'Skipped :leftwards_arrow_with_hook:', header: true }, - { data: 'Duration :clock8:', header: true } + { data: 'Duration :clock8:', header: true }, + { data: 'test type', header: true } ] const status = @@ -79246,7 +79260,8 @@ const generateSummary = async (testResults) => { `${testResults.totalFailed}`, `${testResults.totalPending}`, `${testResults.totalSkipped}`, - `${testResults.totalDuration / 1000}s` || '' + `${testResults.totalDuration / 1000}s` || '', + getInputBool('component', true) ? 'component' : 'e2e', ] await core.summary diff --git a/index.js b/index.js index 4606137c7..c6b3b2f7d 100644 --- a/index.js +++ b/index.js @@ -535,6 +535,7 @@ const runTestsUsingCommandLine = async () => { if (component) { cmd.push('--component') + cmd.push(component) } if (headed) { cmd.push('--headed') @@ -641,7 +642,7 @@ const runTests = async () => { record: getInputBool('record'), parallel: getInputBool('parallel'), quiet: getInputBool('quiet'), - component: getInputBool('component') + // component: getInputBool('component') } const cypressModulePath = require.resolve('cypress', { paths: [workingDirectory] }) || @@ -707,6 +708,10 @@ const runTests = async () => { cypressOptions.env = core.getInput('env') } + if (core.getInput('component')) { + cypressOptions.component = core.getInput('component') + } + if (cypressOptions.parallel || cypressOptions.group) { const { branch, buildId } = await getCiBuildId() if (branch) { @@ -776,17 +781,26 @@ const isSummaryEnabled = () => { } const generateSummary = async (testResults) => { + // const compenentTestTypeParameter = getInputBool('component', true) + + // console.log('testingType', getInputBool('component', true) ? 'component' : 'e2e') + + console.log('testingType', testResults.config.testingType) + if (!isSummaryEnabled()) { return testResults } + console.dir(testResults, {depth: null}); + const headers = [ { data: 'Result', header: true }, { data: 'Passed :white_check_mark:', header: true }, { data: 'Failed :x:', header: true }, { data: 'Pending :hand:', header: true }, { data: 'Skipped :leftwards_arrow_with_hook:', header: true }, - { data: 'Duration :clock8:', header: true } + { data: 'Duration :clock8:', header: true }, + { data: 'test type', header: true } ] const status = @@ -800,7 +814,8 @@ const generateSummary = async (testResults) => { `${testResults.totalFailed}`, `${testResults.totalPending}`, `${testResults.totalSkipped}`, - `${testResults.totalDuration / 1000}s` || '' + `${testResults.totalDuration / 1000}s` || '', + getInputBool('component', true) ? 'component' : 'e2e', ] await core.summary
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: