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
While helping out with editing poly docs, I decided to give the external test runner a whirl.
Working from the poly example tutorial project, if I configure the external test runner as described in the README and then run:
clojure -M:poly test
I get:
Projects to run tests from: command-line
Could not create valid test runner for the command-line project: java.lang.NullPointerException: Cannot invoke "java.lang.CharSequence.length()" because "this.text" is null
Cannot invoke "java.lang.CharSequence.length()" because "this.text" is null
The fact that poly is swallowing the stack trace doesn't help much, but I found if I provide some java opts:
POLY_TEST_JVM_OPTS=-Dfoo.bar=true clojure -M:poly test
All seems good:
Projects to run tests from: command-line
Running tests for the command-line project using test runner: Polylith org.corfield.external-test-runner...
Running tests from the command-line project, including 2 bricks: user, cli
Testing se.example.cli.core-test
Ran 1 tests containing 1 assertions.
0 failures, 0 errors.
Test results: 1 passes, 0 failures, 0 errors.
Testing se.example.user.interface-test
Ran 1 tests containing 1 assertions.
0 failures, 0 errors.
Test results: 1 passes, 0 failures, 0 errors.
Execution time: 1 seconds
Seems like the current code might be assuming java opts are always set?
While helping out with editing poly docs, I decided to give the external test runner a whirl.
Working from the poly
example
tutorial project, if I configure the external test runner as described in the README and then run:I get:
The fact that poly is swallowing the stack trace doesn't help much, but I found if I provide some java opts:
All seems good:
Seems like the current code might be assuming java opts are always set?
polylith-external-test-runner/components/external-test-runner/src/org/corfield/external_test_runner/core.clj
Line 107 in 5a4518d
The text was updated successfully, but these errors were encountered: