How to run the Unit test in Yeoman


I have this link to a project that is using grunt:

How do I run the unit tests in this project?

By looking at the Gruntfile.js you can see the tasks registered.

There is currently three registered tasks;

grunt.registerTask('build-js', ['jshint', 'karma:unit', 'uglify:ngUnique']);
grunt.registerTask('build-css', ['sass:prod']);
grunt.registerTask('build-all', ['build-css', 'build-js']);

As you can see from the source, the build-js task includes running the karma:unit configuration.

To trigger this registered task, you have to run grunt build-js, or if you just want to run the Karma configuration you have to run grunt karma:unit.