-
Notifications
You must be signed in to change notification settings - Fork 12k
Feature request: Support mocha #4071
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
Comments
I'm not 100% sold on officially supporting Mocha; I think we should stick to support 1 testing framework and if you want to use another it's on you. I'll chat to devrel about that. It's great that it works though. |
I've created a seed where I am trying to provide demonstration of doing exactly this. Unfortunately I've completely failed to get it to work for protractor+mocha in the I was able to get |
Any chance this feature request could include command: e2e as well as command: test ? |
Anyone passing through and looking for a working example of angular-cli (rc.2) configured to use mocha for the following runners
here is some working code. |
This isn't something we're looking at supporting right now, but could be done with the introduction of #2618. |
@filipesilva I am interested in chai support in particular. Would it be possible for angular-cli to support chai instead of jasmine? |
It's not something we're looking at right now, no. I suppose it would need a custom compilation plugin like what we do now for karma, and some other stuff. |
I would appreciate seeing mocha used instead of jasmine. I have more tools that integrate with mocha over jasmine and the .only / .skip, in my opinion, is much nicer to read than fdescribe and xdescribe. Jasmine also has had some pretty strange crashes just because a test would fail. It'd be nice to tell me the test failed instead of crashing the entire suite, letting chrome hang, and never printing out the real error. What happened? The setup in the before/beforeEach failed. Kinda stupid. |
Jasmine is horrific. Anything that exposes a property named 'and' needs to be shot and incinerated. |
are there no solutions for doing tests on |
I agree. It’s soanniying to constant have to keep up with both. |
@hansl @filipesilva I get the "support one thing", but does it have to be the slowest one, the one that has most issues with CI hosting, and the one that crashes instead actually reporting errors half the time? anything would be better than Karma/Jasmine (okay, if you're developing on Windows, maybe Jest is actually worse than Jasmine at the moment, but I hope that's just temporary thing) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
It would be great to have an option to use
mocha
andchai
(andsinon
) instead of usingjasmine
.The text was updated successfully, but these errors were encountered: