iamchrismiller / grunt-casper

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

Aborts when setting engine to 'slimerjs' #55

Closed brandondurham closed 9 years ago

brandondurham commented 9 years ago

As far as I can tell SlimerJS is installed and working properly. However, when I change the engine option in grunt-casper to slimerjs I get an "Aborted due to warnings." message in the console with no error details. Here is What I'm seeing in the console:

Running "casper:functional" (casper) task
>>
Casper Task 'casper:functional' took ~1393ms to run
Warning: Task "casper:functional" failed. Use --force to continue.

Aborted due to warnings.

And here is what I have in my Gruntfile.js:

casper: {
    options: {
        test: true,
        includes: './bower_components/jquery/dist/jquery.min.js',
        engine: 'slimerjs'
    },
    functional: {
        options: {
            args: ['--rooturl=http://<%= connect.options.hostname %>:<%= connect.options.port %>/']
        },
        files: {
            'test/results/functional-results.xml': [
                'test/spec/**/*.js'
            ]
        }
    }
},

Any idea what might be happening?

iamchrismiller commented 9 years ago

Thank you.. Looks like the environment export for the binary location wasn't set. I also added slimerjs to package.json. install latest version and let me know if you run into any other issues.

brandondurham commented 9 years ago

Worked, Chris. Thanks!

icd2k3 commented 9 years ago

I'm still having this issue with 0.4.1 - when I run my tests with the "phantomjs" engine they work fine...

but when using "slimerjs": Aborted due to warnings. with no details

Any ideas?