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

Long start up period in case of too many testcases

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, node.js

調査の方向性

報告された大規模な feature セットを使い、まず yarn codeceptjs run --steps --verbose --grep=@debug で遅延を再現します。node_modules/codeceptjs/lib/mochaFactory.js と、参照されている mocha.loadFiles のパスを読み、起動時間がどこで費やされているかを特定します。多くのテストファイルで初期の一時停止が大幅に短縮され、シナリオの実行を変更していなければ完了です。

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

説明

What are you trying to achieve?

Pause between codeceptjs run command and first scenario steps execution should not spend seconds, tens of seconds

What do you get instead?

In the case with a lot of test files and scenarios into these files I see initial delay in ~40 seconds . Related with ~70 feature.ts files and ~400 scenarios.
Who knows, it can be related with initial reading of files with tests and can be related with node_modules/codeceptjs/lib/mochaFactory.js and mocha.loadFiles...
In case of project with small count of files and scenarios delay < 2-3 seconds.

Provide console output if related. Use --verbose mode for more details.

make test-e2e  GREP=@debug
yarn codeceptjs run --steps --verbose --grep=@debug
yarn run v1.22.10                                                                                                                                
$ XXX/node_modules/.bin/codeceptjs run --steps --verbose --grep=@debug                            
{
  startUrl: 'http://localhost:9000',
  tests: 'XXXX/**/*.feature.ts'
}
Details
  • CodeceptJS version: 2.6.11/3.0.4
  • NodeJS Version: v12.19.0
  • Operating System: MacOS 10.15.7
  • puppeteer
主要言語
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 を短くまとめたダイジェスト。