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

Karma with grunt templates #109

Open
astromac opened this issue May 5, 2015 · 1 comment
Open

Karma with grunt templates #109

astromac opened this issue May 5, 2015 · 1 comment

Comments

@astromac
Copy link

astromac commented May 5, 2015

It seems that Karma doesn't like having grunt templates in addition to other values in the karma files config (Gruntfile.js).

It's okay with a lone template...

files: ['<%= dom_munger.data.appjs %>'],

...but adding other files like...

files: [
    '<%= dom_munger.data.appjs %>',
    'bower_components/es5-shim/es5-shim.js', // required for PhantomJS 1.9.x
    'bower_components/angular-mocks/angular-mocks.js',
    'test/*-spec.js'
],

...produces errors...

"C:\Program Files (x86)\JetBrains\WebStorm 10.0.2\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" C:\Users\A552042\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt --gruntfile C:\Users\A552042\Sites\CommHubLocal\Gruntfile.js test
Running "dom_munger:read" (dom_munger) task

Processing index.html
Wrote script[data-concat!="false"].src to dom_munger.data.appjs
Wrote link[rel="stylesheet"][data-concat!="false"].href to dom_munger.data.appcss

Running "karma:all_tests" (karma) task
WARN [config]: Invalid pattern bower_components/angular/angular.js,bower_components/angular-route/angular-route.js,bower_components/angular-animate/angular-animate.js,bower_components/angular-resource/angular-resource.js,bower_components/angular-cookies/angular-cookies.js,bower_components/angular-sanitize/angular-sanitize.js,bower_components/angular-messages/angular-messages.js,bower_components/angular-aria/angular-aria.js,bower_components/angular-strap/dist/angular-strap.js,bower_components/angular-strap/dist/angular-strap.tpl.js,bower_components/angular-ui-select/dist/select.js,bower_components/ng-file-upload/ng-file-upload.js,bower_components/angular-ui-grid/ui-grid.js,bower_components/jspath/lib/jspath.js,bower_components/angularjs-scope.safeapply/src/Scope.SafeApply.js,app.js,[...truncated for brevity...]
Object is missing "pattern" property.
Warning: Arguments to path.resolve must be strings� Use --force to continue.

Aborted due to warnings.

Process finished with exit code 3

@eduardoinnorway
Copy link

Im here to, I would like to see a full example with focus on tests both e2e and unit.

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