Skip to content

karma with PhantomJS as browser #1

Open

Description

@milkshakeuk

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.

Activity

  1. iradul commented on Apr 25, 2016

    @iradul
    Owner

    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.

  2. milkshakeuk commented on Apr 26, 2016

    @milkshakeuk
    Author

    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.

  3. Rookian commented on Dec 30, 2016

    @Rookian

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

  4. sjd78 commented on Feb 17, 2017

    @sjd78

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

  5. h0wXD commented on May 18, 2017

    @h0wXD

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions