You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have forked the a Maven project that demonstrates the use of the GraalVM. It also includes a set of tests that confirm that the GraalVM JS engine is faster than the Nashorn engine. These tests work correctly.
I set-up the same project using Mill. The example executes correctly - Nashorn is nearly twice as slow as Graal.js. However the tests fail due to class loading. In order for this to work we need to pass parameters to the JVM and add the libraries to the classpath. Due to issue #690 I created both a JUnit version and a uTest version. The former uses the same directory structure as the original project (intended for contribution), the latter uses the Mill standard directory structure.
I tried to track the issue that leads me to the test call. which then executes a subprocess call that ends in the call to TestRunner. I see that this last execution takes the classpath passed to it as an argument and sets it according. However when I print the classpath (see this example), it does not list the required libraries. Nevertheless I have confirmed that the classpath argument is passed on correctly.
Because the problem manifests itself in both test frameworks I suspect the problem is in the TestRunner and not for example in the JUnitRunner.
I have also seen issues #302 and #370 that seem to be related. These class loading issues seem to be tricky and at this point I do not know what other steps can be taken to diagnose and solve the problem.
Any suggestions are welcome.
The text was updated successfully, but these errors were encountered:
I have forked the a Maven project that demonstrates the use of the GraalVM. It also includes a set of tests that confirm that the GraalVM JS engine is faster than the Nashorn engine. These tests work correctly.
I set-up the same project using Mill. The example executes correctly - Nashorn is nearly twice as slow as Graal.js. However the tests fail due to class loading. In order for this to work we need to pass parameters to the JVM and add the libraries to the classpath. Due to issue #690 I created both a JUnit version and a uTest version. The former uses the same directory structure as the original project (intended for contribution), the latter uses the Mill standard directory structure.
I tried to track the issue that leads me to the test call. which then executes a subprocess call that ends in the call to TestRunner. I see that this last execution takes the classpath passed to it as an argument and sets it according. However when I print the classpath (see this example), it does not list the required libraries. Nevertheless I have confirmed that the classpath argument is passed on correctly.
Because the problem manifests itself in both test frameworks I suspect the problem is in the
TestRunner
and not for example in the JUnitRunner.I have also seen issues #302 and #370 that seem to be related. These class loading issues seem to be tricky and at this point I do not know what other steps can be taken to diagnose and solve the problem.
Any suggestions are welcome.
The text was updated successfully, but these errors were encountered: