iamchrismiller / grunt-casper

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

you can't override the preconfigured casper instance in a test environment #47

Closed lauterry closed 10 years ago

lauterry commented 10 years ago

Hi

I have the following configuration :

casper: {
            options: {
                test : true
            },
            files: [
                'test/integration/**/ouverture.js'
            ]
        }

When I run grunt casper

I have the following error :

"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"

lauterry commented 10 years ago

Hi

I found my error :

In my test code, I removed the following line :

var casper = require('casper').create();

and it work properly

Sorry for the noise

Best regards

Redsandro commented 8 years ago

Thanks @lauterry, this solved my problem. :+1:

huyb1991 commented 8 years ago

Thanks @lauterry, this solved my problem, I just follow example code on CasperJS homepage