Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some test results marked as failed even though all steps passed #312

Open
jkalandarov opened this issue Jan 20, 2024 · 0 comments
Open

Some test results marked as failed even though all steps passed #312

jkalandarov opened this issue Jan 20, 2024 · 0 comments
Labels

Comments

@jkalandarov
Copy link

Environment (please complete the following information):

  • multiple-cucumber-html-reporter: ^3.5.0
  • Node.js version: 18.16.0
  • NPM version: 9.6.7
  • Platform name and version: Windows 11
  • Cucumber version: ^10.3.1

Config of multiple-cucumber-html-reporter

import report from 'multiple-cucumber-html-reporter';
import * as os from 'os';
import { browserInfo } from '../session/createBrowserPage';

report.generate({
  jsonDir: 'test-results/',
  reportPath: 'test-results/reports/',
  reportName: 'Core Automation Report',
  pageTitle: 'Core Automation Report',
  displayDuration: false,
  metadata: {
    browser: {
      name: browserInfo.type ?? 'chrome',
      version: browserInfo.version ?? '120',
    },
    device: process.env.CI ? 'Remote' : 'Local',
    platform: {
      name: os.platform(),
      version: os.release(),
    },
  },
  customData: {
    title: 'Test Info',
    data: [
      { label: 'Project', value: 'Core' },
      { label: 'Release', value: '9.7.0' },
      { label: 'Cycle', value: 'Regression' },
      { label: 'Time', value: new Date() },
    ],
  },
});

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

[Include code or an example repository that can easily be set up]

Expected behavior
A scenario should be marked when all steps are passed.

Actual behavior
A scenario is marked as failed.

Additional context
image

@WasiqB WasiqB added the bug label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants