codeceptjs / codeceptjs/CodeceptJS

Long start up period in case of too many testcases

Abierto
#2,805 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
4.2k
Forks
757
Merge medio
2 d 9 h
PR fusionados (30 d)
16

Descripción

#### 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.

```bash
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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.