Git Product home page Git Product logo

rbnx's Introduction

rbnx's People

Contributors

rlindgren avatar roozenboom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

rlindgren

rbnx's Issues

When running nx test for webdriverio, it is not launching browser.

Current Behavior

NX Ran target e2e for project sample-project-e2e (21s)

     With additional flags:
       --spec=src/e2e/jjapp.spec.ts

×    1/1 failed
√    0/1 succeeded [0 read from cache]

Expected Behaviour

No Spec in the name of "src/e2e/jjapp.spec.ts". But it is generating results as 1/1 failed

Steps to Reproduce

Generate e2e test and execute test with "npx nx e2e your-app-name-e2e --spec=src/e2e/app.spec.ts"

Nx Report

1.
Generate e2e test and execute test with "npx nx e2e your-app-name-e2e --spec=src/e2e/app.spec.ts"

Failure Logs

No response

Additional Information

No response

Could not execute "run" due to missing configuration, file

Current Behavior

Hi, thanks for the cool library and taking the initiative to develop it. Out-of-the-box Nx integration with wdio is something I've wished for.

I've set up a test Nx workspace:

Project Name Project Path Nx Generator
client apps/client @nx/react
client-e2e apps/client-e2e @rbnx/webdriverio

When I run:

nx e2e client-e2e

I get the error:

C:\Workspace\wdiotest\node_modules\.bin\wdio wdio.generated.config.ts

Could not execute "run" due to missing configuration, file

I see that the executed command is passing wdio.generated.config.ts as if it lived at the workspace root, however the file is generated in the project's root (apps/client-e2e/wdio.generated.config.ts).

If I change this line in run-wdio.ts, to use configPath instead of configFile from:

let command = `${getPackageManagerCommand().exec} wdio ${configFile}`;  // configFile

to:

let command = `${getPackageManagerCommand().exec} wdio ${configPath}`; // configPath

...it fixes this issue.

However, then the import path pointing to wdio.config is incorrect. I can modify files/wdio.generated.config.ts__tmpl__ to fix this.

So while I can workaround it, I can't help but to think I must be doing something fundamentally wrong, as I'd imagine such an obvious issue like this likely wouldn't be present.

Would you be able to offer me some guidance here, so that I could execute tests out-of-the-box without having to make the modifications I list above? I've set up a test project to repro for your convenience.

Expected Behaviour

Able to execute tests without modifications/workarounds, as outlined above.

Steps to Reproduce

  1. Clone repro project: https://github.com/octadecimal/nx-webdriverio-test/
  2. Install dependencies: yarn
  3. Run: yarn nx e2e client-e2e

Nx Report

Node   : 16.16.0
   OS     : win32-x64
   yarn   : 1.22.19

   nx                 : 16.7.4
   @nx/js             : 16.7.4
   @nx/jest           : 16.7.4
   @nx/linter         : 16.7.4
   @nx/workspace      : 16.7.4
   @nx/devkit         : 16.7.4
   @nx/eslint-plugin  : 16.7.4
   @nx/node           : 16.7.4
   @nx/react          : 16.7.4
   @nrwl/tao          : 16.7.4
   @nx/web            : 16.7.4
   @nx/webpack        : 16.7.4
   typescript         : 5.1.6
   ---------------------------------------
   Community plugins:
   @rbnx/webdriverio : 1.5.0

Failure Logs

PS C:\Workspace\wdiotest> yarn nx e2e client-e2e
yarn run v1.22.19
$ C:\Workspace\wdiotest\node_modules\.bin\nx e2e client-e2e

> nx run client-e2e:e2e

$ C:\Workspace\wdiotest\node_modules\.bin\wdio wdio.generated.config.ts
? Could not execute "run" due to missing configuration, file

Additional Information

No response

Support --watch flag

Is your feature request related to a problem?

As a developer, I would like to be able to run my e2e tests with --watch, so that I am able to more-rapidly develop my e2e testing Journeys.

Describe the solution or feature you'd like

Accept a watch parameter defined in the executor schema that is passed to the executor and runWdio method, enabling the developer to run wdio in watch mode.

Describe alternatives you've considered

There aren't really any alternative approaches I can see to this that aren't hacky when consuming this package to setup WDIO e2e tests

Additional context

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.