Vscode-java-test: Cannot run tests when the project is a multi-module Maven project

Created on 22 Nov 2018  路  3Comments  路  Source: microsoft/vscode-java-test

Since the release of 0.11.0 when I call 'Run Test' I get 'Failed to run tests' and a message window saying 'Error'.

The repo I've been working with is here: https://github.com/angelozerr/lsp4xml
And tests have been working up until the new release.

selection_009

Try lsp4xml/org.eclipse.lsp4xml/src/test/java/org/eclipse/lsp4xml/services/XMLFormatterTest.java to run a test.

bug

Most helpful comment

The main cause is that in the code here: https://github.com/Microsoft/vscode-java-test/blob/master/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/util/RuntimeClassPathUtils.java#L42

We need to check the project nature as well instead of only doing the null check.

All 3 comments

@NikolasKomonen Thanks for reporting. I'll take a look.

The main cause is that in the code here: https://github.com/Microsoft/vscode-java-test/blob/master/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/util/RuntimeClassPathUtils.java#L42

We need to check the project nature as well instead of only doing the null check.

Java Test Runner 0.11.1 has been released.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jbelford picture jbelford  路  5Comments

falco467 picture falco467  路  7Comments

fbricon picture fbricon  路  5Comments

lashchev picture lashchev  路  5Comments

gabloe picture gabloe  路  7Comments