Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run Junit tests in Eclipse Che - Right click and run does not work #17818

Closed
4 of 22 tasks
desaiRahulS opened this issue Sep 9, 2020 · 4 comments
Closed
4 of 22 tasks
Labels
kind/bug Outline of a bug - must adhere to the bug report template.

Comments

@desaiRahulS
Copy link

desaiRahulS commented Sep 9, 2020

Describe the bug

I would like to right click on a Junit test and run which does nothing as it expects a main method.
I noticed that VS Code Java Test Runner plugin is missing in eclipse che 7.18.0.
Also I did not see any plugin supporting test in the list of available plugins

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  1. Create a new workspace with a Java Spring Boot sample project which has a unit test
  2. Right click on the unit test and click run
  3. You should get an error on the lines "main method is missing"
  4. Click View -> Test, which should open an empty pane on the left side

Expected behavior

Right click on the Junit test and clicking run should execute the unit test in Java

Runtime

  • kubernetes (include output of kubectl version)
    Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.0", GitCommit:"e19964183377d0ec2052d1f1fa930c4d7575bd50", GitTreeState:"clean", BuildDate:"2020-08-26T14:30:33Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"}
    Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.13", GitCommit:"1da71a35d52fa82847fd61c3db20c4f95d283977", GitTreeState:"clean", BuildDate:"2020-07-15T21:59:26Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Installation method

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • other: please specify

Eclipse Che Logs

N/A

Additional context

As a workaround I am running "mvn clean test" but it would be truly helpful to understand why right click on Junit and run does not work.
Similar issue as described here - https://stackoverflow.com/questions/59208921/debug-java-test-in-eclipse-che

@desaiRahulS desaiRahulS added the kind/bug Outline of a bug - must adhere to the bug report template. label Sep 9, 2020
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Sep 9, 2020
@ericwill
Copy link
Contributor

ericwill commented Sep 9, 2020

Should be fixed by eclipse-che/che-plugin-registry#602

@ericwill ericwill removed the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Sep 9, 2020
@ericwill
Copy link
Contributor

ericwill commented Sep 9, 2020

Duplicate of #14871

@ericwill ericwill marked this as a duplicate of #14871 Sep 9, 2020
@ericwill ericwill closed this as completed Sep 9, 2020
@desaiRahulS
Copy link
Author

My apologies, as I missed the original issue being tracked. Thanks

@ericwill
Copy link
Contributor

ericwill commented Sep 9, 2020

My apologies, as I missed the original issue being tracked. Thanks

No apologies needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

No branches or pull requests

3 participants