mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-11 03:49:47 -05:00
chore: Normalized reporters between CI tasks (#16608)
This commit is contained in:
@@ -13,6 +13,8 @@ const PROJECTS_FOR_CI = fs.readFileSync(filePath, { encoding: 'utf8' })
|
||||
.split('\n')
|
||||
.filter((a) => !/^\#/.test(a))
|
||||
|
||||
const reporterConfig = path.resolve(process.cwd(), '../../mocha-reporter-config.json')
|
||||
|
||||
const testResultsDestination = path.resolve(process.cwd(), 'test_results')
|
||||
|
||||
const runTests = async (dir) => {
|
||||
@@ -28,9 +30,9 @@ const runTests = async (dir) => {
|
||||
await execa('yarn', [
|
||||
'test',
|
||||
'--reporter',
|
||||
'cypress-circleci-reporter',
|
||||
'mocha-multi-reporters',
|
||||
'--reporter-options',
|
||||
`resultsDir=${testResultsDestination}`,
|
||||
`configFile=${reporterConfig},resultsDir=${testResultsDestination}`,
|
||||
], { stdout: 'inherit' })
|
||||
} catch (e) {
|
||||
if (e.stdout) {
|
||||
|
||||
Reference in New Issue
Block a user