[feature-req] watch tests and auto-reload on change (like chimp); Don't shutdown the browser
See original GitHub issueWhat are you trying to achieve?
I’m trying to get a realtime feedback for quicker test development cycle. Just like chimp where:
- Browser stays open after tests are run
- Tests are re-run when the test files change
- auto manage selenium server and browser drivers
- Auto installs dependencies
What do you get instead?
No realtime feedback on test writing
- Browser shuts down after each run
- Have to manually re-run tests
- Need to start selenium manually
- Need to install helpers manually (even though it’s mentioned during init)
Provide console output if related. Use
--verbose
mode for more details.
# paste output here
Provide test source code if related
// 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"
}
# paste suite config here
Issue Analytics
- State:
- Created 6 years ago
- Reactions:12
- Comments:8
Top Results From Across the Web
[feature-req] watch tests and auto-reload on change ... - GitHub
I'm trying to get a realtime feedback for quicker test development cycle. Just like chimp where: Browser stays open after tests are run;...
Read more >Codeception - Bountysource
[feature-req] watch tests and auto-reload on change (like chimp); Don't shutdown the browser $ 0 · 1. Browser stays open after tests are...
Read more >Cypress - automatically run all tests in browser, with hot reload
The thing is I want the tests in watch/hot-reload mode, to rerun when I change the tests and it'd be nice if they...
Read more >[ANN] LiveServer: A simple development server with live ...
Open a Browser and go to http://localhost:8000/ to see the content being rendered; try modifying files (e.g. index.html ) and watch the changes...
Read more >Debugging configurations for Python apps in Visual Studio Code
vscode folder in your workspace. Note: To change debugging configuration, your code must be stored in a folder. To initialize debug configurations, first...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Almost! This works:
Typescript:
I’m using typescript, but nodemon only watches javascript files by default, so I needed to specify a file extension with
-e
:Watch a directory
I also wanted to only
--watch
the test directoryNPM Script
That’s a lot to type, so I made it an npm script, and now I can run end-to-end tests with:
Or,
npm run test:e2e
if you’re using npm.In the meantime you can try
nodemon codeceptjs run
, maybe?