Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test debugging with VSCode #705

Open
delfin86 opened this issue Jul 12, 2019 · 3 comments
Open

Test debugging with VSCode #705

delfin86 opened this issue Jul 12, 2019 · 3 comments

Comments

@delfin86
Copy link

Hey!

It would be great if you show us how to debug tests with VSCode and nightwatch-api or make video and download it to the site...Becouse the old method and resource has not working types of debugging.

Thanks!

@spnraju
Copy link
Collaborator

spnraju commented Jul 14, 2019

Hi @delfin86 , thank you for bringing this up. We will consider adding it or you can add it through a PR if you figure it out before we could. Below is a link which might be of help until that.

https://www.youtube.com/watch?v=SVOC_c_vOTs&list=PLHe-juD38yt4t38EsggDx2viWXz9Dc0OS&index=3

@delfin86
Copy link
Author

delfin86 commented Jul 16, 2019

thanks @spnraju ! but it's not for I looking for
I've created launch.json file with code:

{
     "version": "0.2.0",
     "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Nightwatch",
            "console": "integratedTerminal",
            "cwd": "${workspaceRoot}",
            "program": "${workspaceRoot}/node_modules/cucumber/bin/cucumber-js",
            "stopOnEntry": false,
            "internalConsoleOptions": "neverOpen",
            "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/babel-node",
            "runtimeArgs": [
                "--nolazy",
              ],
            "args": [
         
                "features/*.feature",
                "-r",
                "step-definitions/*",
                "pages/*",
                "fragments/*",
                "--tags",
                "@debug"
            ],
        }
    ]
}

but I got an error

F--

Failures:

1) Scenario: Searching DuckDuckGo # features/duckduckgo-search.feature:5
✖ Given I open DuckDuckGo search page # step-definitions/steps.js:9
    Error: Nightwatch client is not ready.
                  Looks like function "createSession" did not succeed or was not called yet.

Debugger has launched and stopped into breakpoints but didn't run nighwatch-api session and browser. Can you help me?

@spnraju
Copy link
Collaborator

spnraju commented Feb 8, 2021

@delfin86 were you able to progress on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants