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

Mocha unit testing with PhantomJS #120

Open
sindresorhus opened this issue May 10, 2014 · 12 comments
Open

Mocha unit testing with PhantomJS #120

sindresorhus opened this issue May 10, 2014 · 12 comments
Assignees
Projects

Comments

@sindresorhus
Copy link
Member

https://github.com/mrhooray/gulp-mocha-phantomjs

@silvenon
Copy link
Member

silvenon commented Jun 2, 2014

I tried, but didn't manage to get it working. How about Karma?

@sindresorhus
Copy link
Member Author

Not a big fan, but I don't like Mocha either, so why not.

@addyosmani
Copy link
Member

What's wrong with Mocha? I don't mind Karma being used either.

@sindresorhus
Copy link
Member Author

@addyosmani probably mostly personal preference, but; it's bloated, slow, introduces implicit globals, awful programmatic API, too short default timeout, too much boilerplate to use it on the client-side, and probably more I can't remember right now.

@silvenon
Copy link
Member

silvenon commented Jun 3, 2014

@sindresorhus Which one do you use? I had bad experience with Mocha also, so I switched to Jasmine + Karma. I can implement that combo if that works for you guys.

@sindresorhus
Copy link
Member Author

Mocha

@kevva
Copy link
Member

kevva commented Jun 3, 2014

:)

@silvenon silvenon self-assigned this Jun 10, 2014
@arthurvr
Copy link
Member

arthurvr commented Apr 6, 2015

I tried, but didn't manage to get it working. How about Karma?

Just tried to integrate it and it's a PITA. I'm also +1 for Mocha though.

@addyosmani
Copy link
Member

👍 Mocha.

@silvenon
Copy link
Member

silvenon commented Jun 1, 2015

What do you guys think about this kind of setup for testing with PhantomJS & Mocha? Users would be able to easily switch browsers or use external services like Sauce Labs, Browerstack etc. Or is it a tad too opinionated?

@RehanSaeed
Copy link

I was also unable to get gulp-mocha-phantomjs to work. I raised this https://github.com/mrhooray/gulp-mocha-phantomjs/issues/47 issue. This plugin seems easier to use than Karma, although Karma does provide code coverage too as an added bonus.

@silvenon
Copy link
Member

WebdriverIO is a great Nodey way to test, so that's probably the right way to go. I'm already quite experienced with it, I'm just waiting for it to release a public API for plugins.

SBoudrias pushed a commit that referenced this issue Feb 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Tests
TODO
Development

No branches or pull requests

6 participants