Daniel Patrick
Daniel Patrick

Reputation: 4340

How do I run ng e2e against a remote server?

I want to run the the angular cli's ng e2e tests against a web application that is being served by someone else (other than angular cli). How do I specify the host and port of the application?

Upvotes: 3

Views: 2191

Answers (2)

Brine
Brine

Reputation: 3731

You can specify in your config, and then override on the cli...

protractor conf.js --baseUrl https://adomain.com

Upvotes: 5

Daniel Patrick
Daniel Patrick

Reputation: 4340

Found it. It's specified in the protractor.conf.js file at the root of the angular project:

  baseUrl: 'http://localhost:8080/',

Upvotes: 5

Related Questions