-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Che Java Test Runner Plugin #2157
Che Java Test Runner Plugin #2157
Conversation
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
…ting-ide Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
…me, method and line numbers to the dto Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
…GUI, added goto failing class to the GUI Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
…m navigation pannel Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
…d user experiance Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
…rces Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
…le structure Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please respond to all my comments.
<parent> | ||
<artifactId>che-java-testing-classpath</artifactId> | ||
<groupId>org.eclipse.che.plugin</groupId> | ||
<version>4.7.0-RC2-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sync with version in master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
<parent> | ||
<artifactId>che-plugin-java-test-runner-parent</artifactId> | ||
<groupId>org.eclipse.che.plugin</groupId> | ||
<version>4.7.0-RC2-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sync with version in master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
<parent> | ||
<artifactId>che-java-testing-core</artifactId> | ||
<groupId>org.eclipse.che.plugin</groupId> | ||
<version>4.7.0-RC2-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sync with version in master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
import org.eclipse.che.ide.ext.java.testing.core.client.view.navigation.nodes.TestResultMethodNode; | ||
import org.eclipse.che.ide.ext.java.testing.core.shared.TestResult; | ||
/** | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
import javax.validation.constraints.NotNull; | ||
import java.util.List; | ||
/** | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
javadoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
<parent> | ||
<artifactId>che-plugin-java-test-runner-parent</artifactId> | ||
<groupId>org.eclipse.che.plugin</groupId> | ||
<version>4.7.0-RC2-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sync with version in master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
<parent> | ||
<artifactId>che-java-testing-testng</artifactId> | ||
<groupId>org.eclipse.che.plugin</groupId> | ||
<version>4.7.0-RC2-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sync with version in master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
<parent> | ||
<artifactId>che-java-testing-testng</artifactId> | ||
<groupId>org.eclipse.che.plugin</groupId> | ||
<version>4.7.0-RC2-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sync with version in master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
<parent> | ||
<artifactId>che-plugin-java-test-runner-parent</artifactId> | ||
<groupId>org.eclipse.che.plugin</groupId> | ||
<version>4.7.0-RC2-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sync with version in master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
<parent> | ||
<artifactId>che-plugin-parent</artifactId> | ||
<groupId>org.eclipse.che.plugin</groupId> | ||
<version>4.7.0-RC2-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sync with version in master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
71f97de
to
5dd6282
Compare
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
…ner plugin Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
import java.util.Map; | ||
|
||
import static org.eclipse.che.ide.api.notification.StatusNotification.DisplayMode.FLOAT_MODE; | ||
import static org.eclipse.che.ide.api.notification.StatusNotification.Status.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid "*" imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed wildcard imports
import java.util.Map; | ||
|
||
import static org.eclipse.che.ide.api.notification.StatusNotification.DisplayMode.FLOAT_MODE; | ||
import static org.eclipse.che.ide.api.notification.StatusNotification.Status.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid "*" imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed wildcard imports
} | ||
|
||
@Override | ||
protected void updateProjectAction(ActionEvent e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need empty method here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
import java.util.Map; | ||
|
||
import static org.eclipse.che.ide.api.notification.StatusNotification.DisplayMode.FLOAT_MODE; | ||
import static org.eclipse.che.ide.api.notification.StatusNotification.Status.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid "*" imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed wildcard imports
} | ||
|
||
@Override | ||
protected void updateProjectAction(ActionEvent e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need empty method here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
@Mirage20 please answer on our comments, we want to make QA circle with your branch and merge it thanks for your work |
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please answer to my comments.
|
||
/** | ||
* JUnit implementation for the test runner service. | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please declare all parameters that this class can accept in execute
method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the javadoc with parameters.
|
||
/** | ||
* TestNG implementation for the test runner service. | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please declare all parameters that this class can accept in execute
method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the javadoc with parameters.
Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
@Mirage20 I think we good to go to the next step. |
merged here #3095 |
Is this implementation tightly coupled to Java? Can we use it for PHPUnit - a PHP unit testing framework, which from design point of view is similar to the Java unit testing frameworks? |
For now it coupled to Java and it's pretty new plugin form community not much functionality covered. But your question really good, will be good provide some API for testing framework like we did with debugger |
* added java test runner plugin to the che project Signed-off-by: Mirage Abeysekara <mirage.12@cse.mrt.ac.lk>
What does this PR do?
This pull request implements Java unit test runner plugin for che, which enables users to easily run Java unit tests within the IDE and view/navigate the test results.
Features
Tests written?
Yes
Documentation
Plugin Documentration: https://docs.google.com/document/d/1BclPyGRjgExWwgxqBmb-CoHuRMxKsW8yRVVa3gP7pYI/edit?usp=sharing