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

`run-multiple` command picks 0 feature files when `-c` CLI option is specified

オープン 初心者向け
#5,358 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
javascript, node.js
領域
cli, testing-qa

調査の方向性

lib/command/run-multiple.js のカスタム設定パスの処理付近から始め、結果として得られたパスがどのように lib/codecept.js と globSync に到達するかを追跡します。Issue にある両方の run-multiple コマンドを再現し、-c codecept.conf.js を明示的に渡すことで、設定された feature ファイルが検出されて実行されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

stale

Let's assume we have codecept.conf.js config file in the project root with the following config:

exports.config = {
    // other options go here
    multiple: {
        basic: {
            browsers: ['chromium', 'firefox'],
        },
    },
    gherkin: {
        features: './features/*.feature',
        steps: ['./step_definitions/steps.js'],
    }
};

When running tests with:

codeceptjs run-multiple --all

all specified feature files are executed as expected.

However, when the -c CLI option is explicitly provided:

codeceptjs run-multiple --all -c codecept.conf.js

the command fails to identify and run the specified glob for the feature files, resulting in 0 features being picked.

Image

Root cause:

The issue occurs due to the usage of path.resolve on paths when a custom configuration file is specified here. This results in invalid input for the globSync command, causing it to fail to resolve the glob patterns correctly here.

主要言語
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 を短くまとめたダイジェスト。