vscode-phantomjs-debug
vscode-phantomjs-debug copied to clipboard
karma with PhantomJS as browser
It would be incredibly useful if you could provide a sample of how you could debug karma jasmine tests which use PhantomJS as the browser for running the test suite.
I'm aware that many people are using PhantomJS for testing so it might be good idea to write something like that in the future. Since I'm not using your setup for testing I wouldn't be the right person to do it. Anyway this is general debugger for any PhantomJS script which means that tests are just small fraction of what you can actually do with PhantomJS and this debugger.
You wouldn't need my exact set up, just a very basic and generalised example using the default karma.conf with PhantomJS as the browser and executing it via karma start
would be enough to get most people going I think, and would probably encourage more people to use this extension.
Agree with @milkshakeuk. Please provide a setup documentation on how to debug an Angular2 application with karma and PhantomJs.
@iradul - I think just a way to capture PhantomJS that in invoked from a karma test via the karma-phantomjs-launcher would be a big help. If I had that, I could debug my tests inside Visual Studio Code instead of relying on the slightly odd phantomjs browser based debugger.
If you need help updating your code, or with modifying karma-phantomjs-launcher, or with a simple example app to work from, I'd be happy to help.
Also looking for this feature. Is there any update for this? Would be incredibly useful to debug test cases from inside VSC.