throw new Error('Not implemented yet') in BDD does not fail the test
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, playwright
- 領域
- testing-qa
調査の方向性
指定された Playwright 設定を使用して、tests/ui-integration/step_definitions にある示されたステップと gherkin:snippets-generated 定義で問題を再現します。Gherkin のステップランナーがスローされたエラーをどのように処理するかを追跡し、その後、シナリオのステータスが passed ではなく failed になることを確認します。
索引モデルが issue の本文から書いたものです。
説明
What are you trying to achieve?
When test steps are auto generated with gherkin:snippets they do not set the test status to failed when the test is run with the steps implemented with throw new Error('Not implemented yet')
What do you get instead?
The test status is passed
Provide console output if related. Use
--verbosemode for more details.
# paste output here
Provide test source code if related
Given('I have no transactions in the last {int} months', () => {
// From "tests\ui-integration\features\Wrapper_Transactions.feature" {"line":45,"column":2}
throw new Error('Not implemented yet');
});
Details
- CodeceptJS version: 3.0.4
- NodeJS Version:
- Operating System: Windows
- Playwright
- Configuration file:
const server = require("./tests/ui-integration/id_server/id_server");
exports.config = {
name: "CodeceptJS_BDD",
output: "./tests/ui-integration/output",
helpers: {
Playwright: {
url: "https://localhost:44357",
show: true,
windowSize: "1920x1080",
waitForTimeout: 10000,
restart: false,
browser: "chromium",
keepCookies: true,
keepBrowserState: true,
waitForNavigation: "domcontentloaded",
chromium: {
args: ["--no-sandbox", "--start-maximized", "--disable-popup-blocking", "--disable-setuid-sandbox"]
}
},
MockHelper: {
require: "./tests/ui-integration/helpers/mockplaywright_helper.js"
},
Mochawesome: {
uniqueScreenshotNames: true
},
ResembleHelper: {
prepareBaseImage: false,
require: "codeceptjs-resemblehelper",
screenshotFolder: "./tests/ui-integration/screenshots/current/",
baseFolder: "./tests/ui-integration/screenshots/base/",
diffFolder: "./tests/ui-integration/screenshots/diff/",
},
AssertWrapper: {
require: "codeceptjs-assert"
}
},
include: {
I: "./tests/ui-integration/steps_file.js",
...require("./tests/ui-integration/pages")
},
mocha: {
reporterOptions: {
mochawesome: {
stdout: "./output/mochawesome_console.log",
uniqueScreenshotNames: "true",
options: {
reportDir: "./tests/ui-integration/output",
reportFilename: "investor-zone-report"
}
}
}
},
hooks: [],
gherkin: {
features: "./tests/ui-integration/features/*.feature",
steps: [
"./tests/ui-integration/step_definitions/common_steps.js",
"./tests/ui-integration/step_definitions/portfolio/portfolio_valuation_steps.js",
"./tests/ui-integration/step_definitions/portfolio/portfolio_summary_steps.js",
"./tests/ui-integration/step_definitions/documents/documents_steps.js",
"./tests/ui-integration/step_definitions/moneyinmoneyout/moneyin_moneyout_steps.js",
"./tests/ui-integration/step_definitions/wrapperstatements/wrapper_statements_steps.js",
"./tests/ui-integration/step_definitions/wrappertransactions/wrapper_transactions_steps.js"
]
},
async bootstrap() {
await server.start();
},
async teardown() {
await server.stop();
},
plugins: {
autoDelay: {
enabled: true
},
screenshotOnFail: {
enabled: true
},
retryFailedStep: {
enabled: false
},
customLocator: {
enabled: true,
strategy: "css",
attribute: "data-test-id"
}
}
};
- 主要言語
- JavaScript
- スター
- 4.2k
- フォーク
- 756
- 平均マージ
- 2日 9時間
- マージ済み PR(30日)
- 16
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codeceptjs/CodeceptJS のほかの issue
-
stale
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
codeceptjs/CodeceptJS#5420 · コメント 1 件 ·
-
stale
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
codeceptjs/CodeceptJS#5358 · コメント 1 件 ·
-
stale
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
codeceptjs/CodeceptJS#4958 · コメント 10 件 · リアクション 2 件 ·
-
stale
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
codeceptjs/CodeceptJS#4778 · コメント 3 件 ·
-
stale
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
codeceptjs/CodeceptJS#5618 · コメント 1 件 ·
codeceptjs/CodeceptJS の issue をすべて見る
似ている issue
-
ai-observability bug team/ai-observability
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
AllTheMods/ATM-10-L#19 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
SignalK/n2k-signalk#345 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
JuliaPluto/PlutoPlotly.jl#72 ·