floriangrundig / karma-test-runner

Grails plugin to run javascript tests with karma in grails lifecycle "test-app"
Apache License 2.0
7 stars 5 forks source link

Running tests within grails failes #16

Closed m48u closed 8 years ago

m48u commented 8 years ago

I followed your instructions and nearly everything works find exept the point when it comes to grails test-app unit:javascript

The tests were executed and I got a result

11 11 2015 13:18:42.971:INFO [karma]: Karma v0.13.15 server started at http://localhost:9878/
11 11 2015 13:18:42.977:INFO [launcher]: Starting browser PhantomJS
11 11 2015 13:18:43.601:INFO [PhantomJS 1.9.8 (Windows 7 0.0.0)]: Connected on socket XF8DFxTTjwmueBXNAAAA with id 46539308
 PhantomJS 1.9.8 (Windows 7 0.0.0): Executed 7 of 7 SUCCESS (0.004 secs / 0.025 secs)
.
PhantomJS 1.9.8 (Windows 7 0.0.0): Executed 7 of 7 SUCCESS (0.004 secs / 0.025 secs)
Program terminated!
| Completed 0 javascript test, 1 failed in 0m 2s
| Tests FAILED  - view reports in

PhantomJS is executed correctly and successfully and Grails tells me that the tests failed. Who is the liar here?

m48u commented 8 years ago

Stupid me... forgot to tell karma in config

reporters: ['remote'],