s9tpepper / karma-cucumberjs

A Cucumber.js Karma test runner adapter.
MIT License
54 stars 21 forks source link

Error: No Provider for "framework:cucumberjs"! #21

Open JimLynchCodes opened 7 years ago

JimLynchCodes commented 7 years ago

Hello, I followed the guidelines in the instructions, but I am getting this strange error. Any thoughts how I can fix this?

ng-nj_org_ _-bash_ _122x20

JimLynchCodes commented 7 years ago

Just tried on an earlier machine and same error. I think there is an issue with with karma-cucumberjs project. I'm using AngularJS 1.5, ES5 scaffolded from the gulp-Angular Generator.

ng-nj_org_ _-bash_ _135x24

npm -v: 2.14.12 node -v: v4.3.1

please help. :(

Thanks.

raynerweb commented 7 years ago

run npm install -g karma-cucumberjs and after npm install karma-cucumberjs --save-dev

JimLynchCodes commented 7 years ago

Holy coconut fingers! I had already said "screw this project", put a mystical curse on the family of @s9tpepper, and started using "karma-cucumber-js" instead! I was so sad about not being able to run "cucumberized" AngularJS unit tests that I almost spiraled into a depression where I end up as a homeless accordion player begging for money in subways. Luckily, this delicious almond butter and sprouted pumpkin seeds allowed me to keep my wits long enough to wait it out before this Portuguese angel of BDD came to deliver his message with wisdom and compassion. If there was an automated test that would assert whether @raynerweb was awesome, I'd say that test would pass.

I could have sworn I ran those commands already, but I'll try again later tonight. Thanks @raynerweb!

JimLynchCodes commented 7 years ago

@raynerweb Sadly, running these commands did not help at all. :'(

raynerweb commented 7 years ago

here was a POC, i ran thats command: npm install -g cucumber karma-chrome-launcher karma-cucumberjs karma-phantomjs-launcher npm install cucumber karma-chrome-launcher karma-cucumberjs karma-phantomjs-launcher --save-dev

look for https://github.com/raynerweb/poc-cucumber is an example

peace

JimLynchCodes commented 7 years ago

Thanks! Have you ever used this on an actual project though? When I try to actually bring in my source code files it says, "angular is not defined". Also, it's very confusing to have an example with no README. Just saying.

flexbox-push-drawer-example_ _google_chrome_helper_ _node_node_modules_karma_bin_karma_start_karma-c-stepper_conf_js_ _157x27_and_karma