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

Using Karma to test Gulp Tasks #2929

Closed
branpar opened this issue Feb 6, 2018 · 1 comment
Closed

Using Karma to test Gulp Tasks #2929

branpar opened this issue Feb 6, 2018 · 1 comment

Comments

@branpar
Copy link

branpar commented Feb 6, 2018

Hello,

My company uses Gulp on the front-end for our build process. We also have code quality gates we must pass before a build can be completed, such as passing unit tests. We currently test using the Karma, Mocha, Sinon, Chai, Istanbul, and Webpack stack. Because our Gulp tasks are so critical I want to extent testing to them as well, writing unit tests for them.

I am running into a lot of problems and my research points to Karma/Webpack considering these modules for the Gulp tasks to be node, not browser, environment. Can anyone point me to a configuration for Karma that enables my testing for Gulp tasks? (I totally understand this might not be the right project to post this in but I wanted to start here at our test runner first.)

Thanks in advance!

@johnjbarton
Copy link
Contributor

gulp runs on nodejs, so unit tests for gulp would be unit test on nodejs: use mocha. Karma-runner can' help you.

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

No branches or pull requests

2 participants