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

failing with casperjs 1.1-beta3 #19

Closed
iamdustan opened this issue Dec 9, 2013 · 2 comments
Closed

failing with casperjs 1.1-beta3 #19

iamdustan opened this issue Dec 9, 2013 · 2 comments

Comments

@iamdustan
Copy link

I’m getting the following error referenced from this issue on casperjs/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
Copy link

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

@iamdustan
Copy link
Author

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

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