-
Notifications
You must be signed in to change notification settings - Fork 24
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
#827: Made status commandlet available outside of IDE_HOME #885
#827: Made status commandlet available outside of IDE_HOME #885
Conversation
Made the status commandlet not require IDE_HOME or IDE_ROOT Wrote a test for given szenario
Test for status commandlet added
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.
@WorkingAmeise thanks for fixing the problem and also adding a test. 👍
I left some review comments. Please address them so we can merge.
cli/src/main/java/com/devonfw/tools/ide/context/AbstractIdeContext.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/context/AbstractIdeContext.java
Outdated
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/commandlet/StatusCommandletTest.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/commandlet/StatusCommandlet.java
Outdated
Show resolved
Hide resolved
Changed StatusCommandlet.idIdeHomeRequired() to return the value of StatusCommandlet.isIdeRootRequired(), since one only makes sense with the other. Removed accidentaly duplicated line in AbstractIdeContext.applyAndRun(). Changed test to work on every machine and if the User does not have IDEasy on drive C:
…-ide-status-fails-outside-IDE_HOME
…ithub.com/WorkingAmeise/IDEasy into bug/827-ide-status-fails-outside-IDE_HOME
Pull Request Test Coverage Report for Build 12300517835Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
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.
LGTM. Added a small CR.
cli/src/test/java/com/devonfw/tools/ide/commandlet/StatusCommandletTest.java
Outdated
Show resolved
Hide resolved
…ndletTest.java Co-authored-by: jan-vcapgemini <59438728+jan-vcapgemini@users.noreply.github.com>
Closes: #827