Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

throw new Error('Not implemented yet') in BDD does not fail the test

オープン
#2,821 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 --verbose mode 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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codeceptjs/CodeceptJS のほかの issue

codeceptjs/CodeceptJS の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。