Skip to content

Mocha Retries option does not work #98

@oscarcenteno

Description

@oscarcenteno

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions