Long start up period in case of too many testcases

Đang mở
#2,805 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, node.js
Lĩnh vực
performance, testing

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện độ trễ với yarn codeceptjs run --steps --verbose --grep=@debug bằng cách sử dụng tập hợp feature lớn đã được báo cáo. Đọc node_modules/codeceptjs/lib/mochaFactory.js và đường dẫn mocha.loadFiles được tham chiếu để xác định thời gian khởi động được tiêu tốn ở đâu. Được xem là hoàn thành khi khoảng dừng ban đầu được giảm đáng kể đối với nhiều tệp kiểm thử mà không thay đổi việc thực thi scenario.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
JavaScript
Star
4.2k
Fork
756
Merge trung bình
2 ngày 9 giờ
Pull request đã merge (30 ngày)
16

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codeceptjs/CodeceptJS

Tất cả issue của codeceptjs/CodeceptJS

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.