Navigation Menu

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

When running in multiple environments, json and junit reporters generate report for only one environment #3605

Closed
swrdfish opened this issue Feb 13, 2023 · 0 comments · Fixed by #3606

Comments

@swrdfish
Copy link
Member

Description of the bug/issue

When running in multiple environments, json and junit reporters generate report for only one environment.

image (4)

Steps to reproduce

  1. Run parallelly on multiple browsers using Nightwatch. ./bin/nightwatch examples/tests/ -e chrome, firefox --parallel
  2. Check the test_outputs folder. The reports only get generated for a single browser.

Sample test

describe('Ecosia.org Demo', function() {

  before(browser => {
    browser
      .navigateTo('https://www.ecosia.org/');
  });

  it('Demo test ecosia.org', function(browser) {
    browser
      .waitForElementVisible('body')
      .assert.titleContains('Ecosia')
      .assert.visible('input[type=search]')
      .setValue('input[type=search]', 'nightwatch')
      .assert.visible('button[type=submit]')
      .click('button[type=submit]')
      .assert.textContains('.layout__content', 'Nightwatch.js');
  });

  after(browser => browser.end());
});

Command to run

./bin/nightwatch examples/tests/ -e chrome, firefox --parallel

Verbose Output

No response

Nightwatch Configuration

No response

Nightwatch.js Version

2.6.10

Node Version

16.14.2

Browser

Firefox, Chrome

Operating System

MacOS

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant