CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

Consider adding a warning when not using Feature first in the test

Open wadamek65 opened this issue 4 years ago • 0 comments

Description

When you try to run hook methods (for example BeforeSuite) before using the Feature function, it will silently get skipped over without any output. It would be nice to see at least a warning or an error thrown if possible. This will make debugging and catching errors much easier. If you could provide me a little bit of guidance on where this should be adjusted I would be willing to contribute and submit a PR for this.

BeforeSuite(() => console.log('This will not be logged'));

Feature('Test');

Details

  • CodeceptJS version: 3.1.2

wadamek65 avatar Oct 20 '21 10:10 wadamek65