vert-x3 / vertx-lang-js

Nashorn JavaScript implementation for Vert.x
Apache License 2.0
35 stars 23 forks source link

I am getting occasional unit test failure with file not found #18

Closed alexlehm closed 9 years ago

alexlehm commented 9 years ago

I am occasionally getting unit test failures with a filenotfound exception inside the js jar in the local maven repo dir. When I run the tests once more, it usually disappears. This shows on 2 different CI systems (vertx jenkins and drone.io)

https://gist.github.com/alexlehm/3948f0f71114e23dd064 the unit test is this file: https://github.com/vert-x3/vertx-mail-service/blob/master/src/test/java/io/vertx/ext/mail/JavascriptTest.java

purplefox commented 9 years ago

Is this still an issue Alex?

alexlehm commented 9 years ago

I have created a small project that shows the issue, either I am calling the script in a way that doesn't work or it is not finding the file inside the jar sometimes.

https://drone.io/github.com/alexlehm/vertx-mail-js-test/2 https://github.com/alexlehm/vertx-mail-js-test

purplefox commented 9 years ago

Your example is failing because jvm-npm.js in your case is inside the vertx-lang-js that you included as a Maven dependency.

JSRunner is something that is intended to be used inside the vertx-lang-js project where it would be found on the file system.

What is it you're trying to achieve by this example?

alexlehm commented 9 years ago

Initially I used that to run Javascript test files in eclipse, if that doesn't work at all, i think we can just close the issue