-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Unable to see the execution in vs code. #26193
Comments
@pradeep-kumar-JP please provide more context, what are you trying to do when the problem occurrs? What is your setup. Do you want to debug a protractor test case? |
@egamma When i run my test cases in command promt, i face no issue i.e.
But when i run the same test cases in vs code, i can't see any of those 2 happening . Also i dont understand how the test cases are reporting to be passed in console window. i have shared my launch.json , config,js, and reports on the console in the previous comment box. |
@pradeep-kumar-JP thanks for the additional information, but the launch.json is not sufficient for us to reproduce the problem, can create or point to a setup (e.g. github repository) that we can use to reproduce the problem. |
@pradeep-kumar-JP are you following the (VS Code) steps listed here: https://github.com/angular/protractor/blob/master/docs/debugging.md ? |
@egamma |
@weinand |
@pradeep-kumar-JP configuring a launch.json is typically used for debugging, but of course, using it for running tests should work too. Could you please try to run your tests from the command line but inside VS Code. For this open the integrated terminal and use the same command that you would use when running the tests ouside of VS Code. Does this work? |
@weinand |
@PradeepHebbar is this still a problem in recent versions of VS Code and Node.js? |
@PradeepHebbar @weinand I was having a similar issue trying to debug tests with plain jasmine (no protractor). The issue was that Jasmine's default reporter writes to |
@weinand, yes. Redirecting the output to the terminal as suggested above didn't look that great, but |
So there seem to be enough ways to get this to work. Closing. |
the test cases are shown as passed but i cant see the execution.
I can see that browser is launched but no Url is loaded.
But when i run the same project in command promt i can see the URL getting loaded and the execution of the test case as well.
I am pasting my launch.json and config file below::
{
}
config.js
var Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter');
var jasmineReporters = require('jasmine-reporters');
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['spec/Calculator.js'],
capabilities: {
'browserName': 'chrome'
},
jasmineNodeOpts: {
showColors: true
},
};
These are the logs printed in vscode console window:::
node --debug-brk=48235 --nolazy node_modules\protractor\bin\protractor c:\Users\dipika.gusain1\Desktop\Jasmine/config.js
Debugger listening on [::]:48235
Using the selenium server at http://localhost:4444/wd/hub
[launcher] Running 1 instances of WebDriver
inside config
3.
Finished in 0.13 seconds
3 tests, 3 assertions, 0 failures
[launcher] 0 instance(s) of WebDriver still running
[launcher] chrome #1 passed
The text was updated successfully, but these errors were encountered: