Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrated protractor-http-mock. #39

Merged
merged 4 commits into from
Nov 24, 2015
Merged

Integrated protractor-http-mock. #39

merged 4 commits into from
Nov 24, 2015

Conversation

vzickner
Copy link
Member

No description provided.

var mock = require('protractor-http-mock');
mock.config = {
rootDirectory: __dirname, // default value: process.cwd()
protractorConfig: 'protractor.conf.js'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this line do? Because for browserstack tests, the protractor config file will be protractor.browserstack.conf.js. Could not adapting this maybe cause weird bugs at a later point?

@vzickner
Copy link
Member Author

The aim of this line is to specify in which protractor file the http-mock configuration is. It also works for browserstack, since the http-mock configuration is independent of the usage of browserstack or not.
Is it possible to detect at this point, whether browserstack is used or not?

@jGleitz
Copy link

jGleitz commented Nov 20, 2015

Is it possible to detect at this point, whether browserstack is used or not?

It is. But I have to think of a way that does not involve promises.

@vzickner
Copy link
Member Author

The server is necessary to run the HTML and JavaScript files in the Browser - maybe this part of the name should also be improved: "Set up the HTTP server"?

@jGleitz
Copy link

jGleitz commented Nov 20, 2015

Oh, yeah, I’m sorry. I’m so tired that I don’t even understand my own code.

@jGleitz
Copy link

jGleitz commented Nov 20, 2015

maybe this part of the name should also be improved: "Set up the HTTP server"

Good idea.

@jGleitz
Copy link

jGleitz commented Nov 22, 2015

I made some comments on this in #40 – sorry!

@jGleitz
Copy link

jGleitz commented Nov 22, 2015

I think tests/behaviour/example.js is obsolete, as we now have real tests and can be deleted.

@vzickner
Copy link
Member Author

I think tests/behaviour/example.js is obsolete, as we now have real tests and can be deleted.

Yes, but the real tests are not introduced in this pull request. In #40 most of the tests in example.js are deleted.

@jGleitz
Copy link

jGleitz commented Nov 22, 2015

lgtm

vzickner pushed a commit that referenced this pull request Nov 24, 2015
@vzickner vzickner merged commit f3d416a into HelfenKannJeder:master Nov 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants