question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Write a test to ensure configuration wizard works from e2e

See original GitHub issue

We 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 like wdio-chromedriver-service)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
sarathps93commented, Sep 17, 2020

I am un-assigning it so that someone else can pick it up.

1reaction
sarathps93commented, Aug 3, 2020

Mind if I take this as my first pick?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found