codeceptjs / codeceptjs/CodeceptJS

Run-workers. Need to filter tests in main thread when using grep

Đang mở
#2,548 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
4.2k
Fork
757
Merge trung bình
2 ngày 9 giờ
Pull request đã merge (30 ngày)
16

Mô tả

#### What are you have?
When we use run-workers main thread divides tests by the number of workers.
If we use grep with run-workers filter is applied on the next step inside workers. So we can have uneven distribution of tests among workers.
For example:
- tests: test1,test2,test3,test4,test5,test6,test7,test8,test9
- we will call command run-workers 3 with grep test7,test8,test9
- Main thread will divide tests
- worker1: test1,test2,test3
- worker2: test4,test5,test6
- worker3: test7,test8,test9
- Than filter will be applied inside workers and we will see
- worker1: -
- worker2: -
- worker3: test7,test8,test9

#### What do you trying to achieve?
Filter tests in the main thread before dividing tests between workers

### Details

* CodeceptJS version: 2.6.5
* NodeJS Version: 12
* puppeteer || webdriverio || protractor || testcafe version (if related)
* Configuration file:

```js
tests: './tests/**/*_test.js',
output: './output',
helpers: {
WebDriver: {
url: 'http://localhost',
browser: 'chrome',
smartWait: 10000,
waitForTimeout: 10000,
restart: true,
windowSize: 'maximize',
desiredCapabilities: {
chromeOptions: {
prefs: {
'plugins.always_open_pdf_externally': true,
'profile.default_content_settings.popups': 0,
'profile.default_content_setting_values.automatic_downloads': 1,
'download.prompt_for_download': false,
'download.default_directory': path.join(process.cwd(), 'output', 'downloads'),
},
},
},
},
ChaiWrapper: {
require: 'codeceptjs-chai',
},
FileSystem: {},
},
include,
bootstrap: null,
name: 'simple',
plugins: {
wdio: {
enabled: true,
services: ['selenium-standalone'],
},
screenshotOnFail: {
enabled: true,
fullPageScreenshots: true,
},
allure: {},
},
```

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

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

Đánh giá

Issue này chưa được đánh giá.

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.