(no output) for $CIRCLE_TEST_REPORTS/cucumber/tests.cucumber JSON file

Hello.

I am getting (no output) when I am trying to use test.cumber JSON file as instructed in https://circleci.com/docs/1.0/test-metadata/#cucumber

I have done the following:

  • tests.cucumber JSON file created
  • test.cucumber file placed $CIRCLE_TEST_REPORTS/cucumber/tests.cucumber
  • $CIRCLE_ARTIFACTS confirms that the file is created and in the correct place

Of note I can successfully create a html-report and store it in $CIRCLE_ARTIFACTS using the tests.cucumber file via cucumber-html-reporter

I have tried multiple things with the dependencies:
Dependencies

"cucumber": "^2.3.1",
"nightwatch-cucumber": "^7.1.9",
"nightwatch": "^0.9.16",

Cucumber arguments

    '--require', 'test/acceptance/global.js',
    '--require', 'test/acceptance/features/step_definitions',
    '--format', 'pretty',
    '--format', 'json:reports/cucumber/tests.cucumber',
    'test/acceptance/features',

Second combination
Dependencies

"cucumber": "^3.0.1",
"nightwatch-cucumber": "^8.0.5",
"nightwatch": "^0.9.16",

note that v3.0.1 of cucumber.js has breaking changes with the pretty formatter

Cucumber arguments

    '--require', 'test/acceptance/global.js',
    '--require', 'test/acceptance/features/step_definitions',
    '--format', 'json:reports/cucumber/tests.cucumber',
    'test/acceptance/features',

However both combinations give me the (no output) readout when tests fail.

An example of the test_cucumber file can be found (with sensitive data replaced) here

So I am at a bit of a loss as to what to do next. Any advice on how to get a summary report for failing nightwatch/cucumber tests in CircleCi would be great.

The only other thing I can think of is to continue to setup up workflows and use circle 2.0 to see if anything changes there. But from a quick glance at the docs it is the same setup for cucumber and tests.cucumber

Please let me know if you need anymore information.

Any news on this? We still have this issue. It can be seen here https://circleci.com/gh/uktrade/data-hub-frontend/8860#tests/containers/3

I’m also having this issue.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.