vscode-phantomjs-debug icon indicating copy to clipboard operation
vscode-phantomjs-debug copied to clipboard

karma with PhantomJS as browser

Open milkshakeuk opened this issue 8 years ago • 5 comments

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.

milkshakeuk avatar Apr 25 '16 11:04 milkshakeuk

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.

iradul avatar Apr 25 '16 21:04 iradul

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.

milkshakeuk avatar Apr 26 '16 07:04 milkshakeuk

Agree with @milkshakeuk. Please provide a setup documentation on how to debug an Angular2 application with karma and PhantomJs.

Rookian avatar Dec 30 '16 15:12 Rookian

@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.

sjd78 avatar Feb 17 '17 14:02 sjd78

Also looking for this feature. Is there any update for this? Would be incredibly useful to debug test cases from inside VSC.

h0wXD avatar May 18 '17 08:05 h0wXD