Write a test to ensure configuration wizard works from e2e
See original GitHub issueWe promise the user an easy onboarding experience, everything needed to do to run a WebdriverIO e2e test is to:
$ npm i @wdio/cli
$ npx wdio config --yes
$ npx wdio
We should ensure that this works all the time. There have been regressions that were unnoticed (see #5671).
Proposal
Add a CLI test in /tests/cli
that:
- runs through the configuration wizard
- “fake installs” packages
- runs the test for all possible variation
- for Mocha, Jasmine and Cucumber
- with or without page objects
- with or without compiler
- additionally: run simple test with Chromedriver basic setup vs Puppeteer
- checks if they pass
The tricky part about this will be that we need to find a way to automate this without moving away from the original user experience. Here are some suggestions:
- allow to provide default answers via CLI parameters (e.g.
$ npx wdio config --yes --framework jasmine
would use all default values but sets jasmine as framework option) - overwrite
yarn-install
dependency of@wdio/cli
package to replace its functionality so that it links the packages rather than installs them from NPM (besides external packages likewdio-chromedriver-service
)
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Beginner's guide to writing end-to-end tests - GitLab Docs
Beginner's guide to writing end-to-end tests. This tutorial walks you through the creation of end-to-end (e2e) tests for GitLab Community Edition and GitLab ......
Read more >Create a hybrid deployment with the Hybrid Configuration ...
Use the Exchange admin center and Hybrid Configuration Wizard to create a full classic hybrid deployment; Configure OAuth authentication ...
Read more >Configuration - Cypress Documentation
Testing Type -Specific Options. You can provide configuration options for either E2E or Component Testing by creating e2e and component objects inside your ......
Read more >testwizard: end-to-end test automation tool for any app on any ...
Expert support for your test strategy, -process and -policy, tool set-up, and more. DISCOVER TESTWIZARD. How testwizard works. With testwizard, you manage test...
Read more >Testing Dropwizard
Creating a simple default configuration. · Creating a simplistic application. · Adding a dummy health check to the application to suppress the startup...
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 Free
Top 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
I am un-assigning it so that someone else can pick it up.
Mind if I take this as my first pick?