iamchrismiller / grunt-casper

Run CasperJS Scripts/Functional Tests
Other
69 stars 38 forks source link

failing with casperjs 1.1-beta3 #19

Closed iamdustan closed 10 years ago

iamdustan commented 10 years ago

I’m getting the following error referenced from this issue on n1k0/casperjs#728.

Grunt config

casper: {
  options: {
    test: true,
    includes: 'app/shared/test/setup.js',
    parallel: true,
    concurrency: 10,
    'fail-fast': true
  },
  files: [
    'app/module/*.test.js',
  ]
}

Output

Running "casper:files" (casper) task
>> Test file: app/module/module.test.js
>> Fatal: you can't override the preconfigured casper instance in a test environment.
>> Docs: http://docs.casperjs.org/en/latest/testing.html#test-command-args-and-options
Warning: Task "casper:files" failed. Use --force to continue.
bigethan commented 10 years ago

What's in your test files? If there's a new casper created there that'll cause this issue.

iamdustan commented 10 years ago

You’re a genius. I noticed we were creating new casper instances in each casper test. Thanks!