codeceptjs / codeceptjs/CodeceptJS

[feature-req] watch tests and auto-reload on change (like chimp); Don't shutdown the browser

Đang mở
#462 9 bình luận 12 reaction 0 người được giao Xem trên GitHub
enhancement
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 trying to achieve?
I'm trying to get a realtime feedback for quicker test development cycle. Just like chimp where:
1. Browser stays open after tests are run
2. Tests are re-run when the test files change
3. auto manage selenium server and browser drivers
4. Auto installs dependencies

#### What do you get instead?
No realtime feedback on test writing
1. Browser shuts down after each run
2. Have to manually re-run tests
3. Need to start selenium manually
4. Need to install helpers manually (even though it's mentioned during init)

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

```bash
# paste output here
```
> Provide test source code if related

```php
// paste test
```
### Details

* CodeceptJS version: 0.5.1
* NodeJS Version: v6.10.2
* Operating System: win 10 pro x64
* Protractor || WebDriverIO || Nightmare version (if related): webdriverio: 4.6.2
* Configuration file:

codecept.json
```
{
"tests": "./feature/*.js",
"timeout": 10000,
"output": "./output",
"helpers": {
"WebDriverIO": {
"url": "http://localhost",
"browser": "chrome",
"restart": true,
"windowSize": "maximize",
"timeouts": {
"script": 60000,
"page load": 10000,
"implicit" : 5000
}
}
},
"include": {
"I": "./custom-steps/steps_file.js"
},
"bootstrap": false,
"mocha": {},
"name": "shaadi-try"
}
```

```js
# paste suite config here
```

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.