Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Long start up period in case of too many testcases

Open
#2,805 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, node.js

Research direction

Start by reproducing the delay with yarn codeceptjs run --steps --verbose --grep=@debug using the reported large feature set. Read node_modules/codeceptjs/lib/mochaFactory.js and the referenced mocha.loadFiles path to identify where startup time is spent. Done means the initial pause is substantially reduced for many test files without changing scenario execution.

Written by the indexing model from the issue text.

Description

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
Dominant language
JavaScript
Stars
4.2k
Forks
756
Avg merge
2d 9h
Merged PRs (30d)
16

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from codeceptjs/CodeceptJS

All issues in codeceptjs/CodeceptJS

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.