Skip to content

Missing webserver when running protractor tests #20

Open
@joelwkent

Description

@joelwkent

The protractor tests specs included in this repo use http://localhost:8080 but as far as I can tell there is no gulp task that sets up a local webserver at port 8080. To run the protractor tests locally I added gulp-webserver and configured it to start a webserver on port 8080. I then ran the following:

  1. gulp webserver (task to start the webserver on 8080)
  2. gulp webdriver-standalone (task to start the standalone selenium server)
  3. gulp protractor (task to run all protractor test specs)

This works for me, the selenium automated tests run nicely in the browser.

My question is: is there a webserver already included somewhere in this project (I don't know all the npm packages inside out) or is it common practice to not include a webserver and let the developer use the server of their choice? Would people prefer that something like gulp-webserver (or http-server etc...) was included in the package.json with a gulp task to run it to view the examples and a task to run it as part of the protractor tests?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close