reportportal / agent-js-mocha

Agent to integrate Mocha with ReportPortal.
https://www.npmjs.com/package/@reportportal/agent-js-mocha
Apache License 2.0
15 stars 14 forks source link

Mocha Retries option does not work #98

Open oscarcenteno opened 11 months ago

oscarcenteno commented 11 months ago

According to documentation, Mocha allows retries with next code, however it is not retrying in Report Portal:

module.exports = {

  spec: ['**/setup/api/**/*.spec.*'],
  require: ['chai/register-expect.js', 'ts-node/register'],
  extensions: ["ts"],
  timeout: 0, /
  reporter: '@reportportal/agent-js-mocha',
  'reporter-option': [
    `apiKey=${process.env.REPORTPORTAL_SERVER_AUTHENTICATION_UUID}`,
    `endpoint=${process.env.REPORTPORTAL_SERVER_URL}`,
    `launch=${process.env.REPORTPORTAL_LAUNCH_NAME}`,
    `project=${process.env.REPORTPORTAL_SERVER_PROJECT}`,
    `attributes=${process.env.REPORTPORTAL_LAUNCH_ATTRIBUTES}`,
    `description=${process.env.REPORTPORTAL_LAUNCH_DESCRIPTION}`,
    `mode=${process.env.REPORTPORTAL_LAUNCH_MODE}`,
    `debug=${process.env.REPORTPORTAL_LAUNCH_DEBUG_MODE}`,
  ],
  ignore: 'node_modules',
  retries: 1,
  parallel: false
};

Documentation is not explicit if the agent supports Retries.

Can you please clarify? Thanks!