Giter VIP home page Giter VIP logo

grails-casper-plugin's People

Contributors

burtbeckwith avatar ulrich avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

grails-casper-plugin's Issues

FileNotFoundException runing simple CasperJS script

I did the update of the plugin #3 but I'm unable to run any test.
The first thing I trid was to use the example from the CasperJS site, something like this:

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

casper.start('http://casperjs.org/', function() {
  this.echo(this.getTitle());
});

casper.thenOpen('http://phantomjs.org', function() {
  this.echo(this.getTitle());
});

casper.run(function() {
  console.log("this is a test");
  // it fails no matter if I do this or not
  this.test.renderResults(true, 0, this.cli.get('newQuote'));
});

But, I get the error

| Running 1 casper test....
| Tests FAILED  - view reports in /Users/fafa/Develop/loki-project/loki/target/test-reports
| Executing following CasperJS test(s) file(s): [newQuote.js]
| Running 1 casper test...
| Error Error running casper tests: target/TESTS-casperjs-newQuote.js.xml (No such file or directory) (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.io.FileNotFoundException: target/TESTS-casperjs-newQuote.js.xml (No such file or directory)
    at net.reservoircode.grails.plugin.casperjs.CasperGrailsTestType$_doRun_closure3.doCall(CasperGrailsTestType.groovy:106)
    at net.reservoircode.grails.plugin.casperjs.CasperGrailsTestType.doRun(CasperGrailsTestType.groovy:95)
    at _GrailsTest$_run_closure1.doCall(_GrailsTest.groovy:102)
    at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
    at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
    at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
    at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
    at TestApp$_run_closure1.doCall(TestApp.groovy:32)
    at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
    at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
    at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
    at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:427)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners$0.callCurrent(Unknown Source)
    at gant.Gant.dispatch(Gant.groovy:415)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.executeTargets(Gant.groovy:591)
    at gant.Gant.executeTargets(Gant.groovy:590)
| Error Error running casper tests: target/TESTS-casperjs-newQuote.js.xml (No such file or directory)
| Running 1 casper test....
| Tests FAILED  - view reports in /Users/fafa/Develop/loki-project/loki/target/test-reports

I do have CasperJS and PhantomJS installed on the computer.
I don't think its a problem with the test itself.
I'm runing grails test-app casper: -echoOut -echoErr --stacktrace so almost all the information is returned here.

Check configuration after install

Use the file _Install.groovy to check if phantomjs and casperjs are presents. The goal is to explain why the plugin will can't run.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.