googlearchive / generator-angularfire

Yeoman generator for AngularFire: Angular + Firebase apps
191 stars 52 forks source link

"test" is not working after new install #60

Open jakhay opened 8 years ago

jakhay commented 8 years ago

Installed angular generator project using yo.

Summary of my selections: Out of the box I include Bootstrap and some AngularJS recommended modules, AngularFire, and Firebase authentication. ? Firebase instance (https://.firebaseio.com) glowing-torch-8951 ? Include Firebase auth and account tools? Yes ? Which providers shall I install? Email/Password, Anonymous, Facebook, Google, Twitter, GitHub ? Would you like to use Sass (with Compass)? Yes ? Would you like to include Bootstrap? Yes ? Would you like to use the Sass version of Bootstrap? Yes ? Which modules would you like to include? angular-animate.js, angular-cookies.js, angular-resource.js, angular-route.js, angular-sanitize.js, angular-touch.js

Resulting Readme says:

test

This project is generated with [yo angular generator](https://github.com/yeoman/generator-angular)
version 1.0.0.

## Build & development

Run `grunt` for building and `grunt serve` for preview.

## Testing

Running `grunt test` will run the unit tests with karma.

Running tests results in: Jacks-Mac-mini:test JackHayward$ npm test

> test@0.0.0 test /Users/JackHayward/Documents/Development/firebase/test
> grunt test

Running "clean:server" (clean) task
>> 0 paths cleaned.

Running "wiredep:app" (wiredep) task

Running "wiredep:test" (wiredep) task

Running "wiredep:sass" (wiredep) task

Running "concurrent:test" (concurrent) task
    Warning: Running "compass:dist" (compass) task
    Warning: Command failed: /bin/sh -c compass --version
    /bin/sh: compass: command not found
     Use --force to continue.

    Aborted due to warnings.
justinseiter commented 8 years ago

@jakhay Looks like either Compass is not installed or perhaps isn't pathed properly. Alternatively you could run the generator without Sass/Compass.

jakhay commented 8 years ago

Looks like either Compass is not installed or perhaps isn't pathed properly.

Right - but shouldn't Compass be installed automatically when I install angular generator? Doesn't that mean there's a bug here? And how would I correct this? I see a repo for compass here: https://github.com/Compass/compass But I'm not sure if this is the correct compass repo or where it would need to be installed in order to make this work.

Alternatively you could run the generator without Sass/Compass.

The code is working fine - it's only the tests that are failing to run, so I'm not sure how this suggestion would help - or even how to implement it. I think the compass test is hardwired into the "grunt test" command - is there a way to remove the compass test?

katowulf commented 8 years ago

This isn't generator angular. This is generator-angularfire.

Compass must be installed and is not a dependency we manage. Answer no if you don't have it installed