Search code examples
intellij-ideacucumbercucumberjsintellij-14codeceptjs

Error running Scenario please specify package correctly: "../null" file not found - Cucumber/CodeceptJs/IntelliJ


I'm trying to run a very basic Cucumber/CodeceptJs feature file but am getting this Error running Scenario please specify package correctly: "../null" file not found message and not sure what to do as very new to this tool. If I can have any help to know what I'm missing please.

basic.feature

Feature: Business rules
 In order to achieve my goals
 As a persona
 I want to be able to interact with a system

Scenario: do something
  Given I have a defined step

steps.js

const { I } = inject();

Given('I have a defined step', () => {
    I.amOnPage('/my-page/ui');
});

enter image description here

enter image description here

enter image description here

Thank you very much.


Solution

  • It seems Intellij 2020.2 is compatible only with cucumber 5.0.1

    Using cucumber 6.0.5 and 7.0.0-rc0 will fail because cucumber broke its API.

    We have to ask to Jetbrain to update his code :)