cumber-js:黄瓜不读取步骤定义

时间:2019-12-17 12:21:57

标签: node.js cucumber cucumberjs

我正在从package.json中的脚本运行黄瓜测试:

"cucumber-test": "./node_modules/.bin/cucumber-js ./src/jasmine-cucumber/features/*.feature --require './src/jasmine-cucumber/step-definitions/*.js'"

我的文件夹结构如下:

dat
   node_modules
   package.json
   src
      jasmine-cucumber
                      features
                              test1.feature.ts
                              test1.feature.js
                      step-definitions
                              test1.step.ts
                              test1.step.js

该项目位于TypeScript中,.ts和已编译的.js文件都位于同一位置。

当我运行脚本时,找不到以下步骤: 我在玩这条路,试图对其进行修改,但没有奏效。

0 个答案:

没有答案