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

Use a service for running tests in browsers #81

Open
naugtur opened this issue Jul 10, 2015 · 8 comments
Open

Use a service for running tests in browsers #81

naugtur opened this issue Jul 10, 2015 · 8 comments

Comments

@naugtur
Copy link
Owner

naugtur commented Jul 10, 2015

[edited]

The idea is to find and configure a service for running tests in multiple browsers to monitor browser support automatically.

The trick is, we need the server side for the tests running in the same origin.

See how npm test does it now.

@naugtur
Copy link
Owner Author

naugtur commented Jul 11, 2015

@Raynos
I set up zuul and got saucelab account for opensource, but it seems like I'm missing something. The tests start and then timeout or break. Could you verify if that's also happening for you?
I tried starting with different browsers etc. (There are also cross-domain issued in saucelab's IE8 that didn't happen on my VM, but that's for later)

It might be because they don't support making requests outside, but I didn't find it in docs.

I committed the zuul setup https://github.com/Raynos/xhr/tree/zuul-saucelabs
It works with regular ~/.zuulrc

@TehShrike
Copy link
Collaborator

I couldn't get Zuul + Saucelabs to work very well for my projects, but I've had decent luck with Browserstack. See http://joshduff.com/#!/post/2015-08-automated-testing-with-tape-and-browserstack.md

@naugtur
Copy link
Owner Author

naugtur commented Jun 4, 2016

You need to set up access to saucelabs. But the tests may not work currently as they're making requests outside - I'm not sure if saucelabs is allowing that.

@TehShrike
Copy link
Collaborator

I have a free/open source Saucelabs account, but the test limit was so low that I hit it right away.

@naugtur
Copy link
Owner Author

naugtur commented Jul 8, 2016

But I'd need to run the mock server to test xhr. browserstack runner doesn't allow for that...

@naugtur naugtur changed the title Use saucelabs and zuul for running tests Use a service for running tests in browsers Feb 3, 2017
@naugtur
Copy link
Owner Author

naugtur commented Feb 17, 2017

Now that I see BrowserStack claims they support running a mock server. @TehShrike would you mind helping me out with getting this repo configured with BrowserStack and browserstack-tape-reporter?

@TehShrike
Copy link
Collaborator

I went back and poked at it recently, and browserstack-runner was completely borked for me, thus borking browserstack-tape-reporter :-( I haven't dived into automated browser testing since then, so I don't actually have a good way at hand to pull off testing with BrowserStack.

@ashnur
Copy link

ashnur commented Aug 1, 2018

**EDIT: I probably spoke too soon, just noticed https://github.com/naugtur/xhr#mocking-requests
Doesn't yet make everything easy, but I see how this it's not this library's "fault" :)

I think it would be completely fine if your library would work with https://www.npmjs.com/package/xhr-mock (I haven't dig deep into this, but it seems that you cache the object, so by the time I want to replace it, it's already too late)

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

No branches or pull requests

3 participants