question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing Java Test Runner Support for Java

See original GitHub issue

Issue

There seems to be no support for running Tests in Java on Che 7.

Adding the Java Test Runner extension would be a good solution to this problem as it would add support for both class level and function level tests.

Steps tried

  • Tried installing the plugin by copying the Code Quick Open from here as suggested over here
  • Tried installing the plugin by publishing it as mentioned over here by publishing it.
    • The publishing instructions were not very clear. On stumbling about, found this page about customising the registries
  • Tried editing the plugin registry at runtime as mentioned here.
    • The commands did not mention changing the namespace.
    • kubectl exec $\{PLUGIN_REG_POD} -i -t -- /var/www/html/index_v2.sh v3 > /var/www/html/v3/plugins/index.json did not work. It kept confusing the files by trying to find the file on my local machine.

Help regarding any of the above solutions is much appreciated.

Here are the issues that are keeping this extension from working properly in Che: [x] Support VS Code Standard Icons in Contributions https://github.com/eclipse-theia/theia/issues/7634 [x] Support Command Type for StatusBarItem.command https://github.com/eclipse-theia/theia/issues/8241 [x] Cannot resolve /hostedPlugin/ Resources from Sidecar Containers #17517

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:23 (20 by maintainers)

github_iconTop GitHub Comments

2reactions
thisHermitcommented, Oct 14, 2019

As you have moved this to a P2 priority, would you mind if I take this up?

If yes, can you please suggest me the steps I should take?

0reactions
tsmaedercommented, Jul 29, 2020

The problem loading the “pass”, “running”, etc. icons is that the front end is trying to load an icon with an URI like this: https://routeij17ga9z-che.apps-crc.testing/hostedPlugin/vscode-java-test/resources/media/dark/pass.svg. This kind of icon is resolved locally to the Theia back end process in https://github.com/eclipse-theia/theia/blob/dfcfccc1d4cfa86534419dd28dfe86faab2c494b/packages/plugin-ext/src/hosted/node/plugin-reader.ts#L51. However, the icon would have to be read from the container running the plugin and there are no provisions for forwarding the request to the container.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Test Runner for Java - Visual Studio Marketplace
Run and debug JUnit or TestNG test cases. Installation. Launch VS Code Quick Open ( Ctrl+P ), paste the following command, and press...
Read more >
Troubleshooting tips for running Java
Download and Install Java · Use Java · Test Java · Uninstall Old Versions of Java · Find Java · Always redirected to...
Read more >
Java in Eclipse and JUnit Tests
Run the Eclipse Installer. Select "Eclipse IDE for Java Developers" and then "Install" to install Eclipse. Launch Eclipse. The first time you run...
Read more >
Test Runner stop working with JDK 8 · Issue #1048 - GitHub
1 and the latest versions of "Language Support for Java by Red Hat" and "Debugger for Java". After the update I couldn't see...
Read more >
JUnit Tutorial: Setting Up, Writing, and Running Java Unit Tests
Annotations are extremely important when creating JUnits. This is how the JUnit framework identifies the important parts of the unit test. In ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found