-
Notifications
You must be signed in to change notification settings - Fork 34
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
#898: Improved output of get-version/edition and uninstall/-plugin #903
#898: Improved output of get-version/edition and uninstall/-plugin #903
Conversation
Edition/VersionGetCommandlet changed them to log the configured option if the tool is not installed and the installed option if it is installed. Changed the toolInstallInfo method to log into IdeSublogger instead of using context.info or context.warning. Changed the uninstall commandlet to log a warning in case the requested commandlet is not installed. Changed the uninstallPlugin commandlet to give feedback wether the plugin could be deleted or if there was not installation found. Adjusted Tests for Edition/VersionGetCommandlet as well as Uninstall commandlet to expect the correct loglevel or content of logged messages. Added logAtProccessable to IdeTestContextAssertions to check if a log-message was logged on PROCESSABLE-level. Added .ide.software.version file to the npm software in the basic ide-test-project-ressource, since it was needed to test my implementation.
added CHANGELOG entry
Pull Request Test Coverage Report for Build 12816835423Details
💛 - Coveralls |
cli/src/main/java/com/devonfw/tools/ide/commandlet/VersionGetCommandlet.java
Outdated
Show resolved
Hide resolved
@jan-vcapgemini please have a look. |
So if I get this correct, the test was expecting the message |
cli/src/main/java/com/devonfw/tools/ide/tool/plugin/PluginBasedCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/commandlet/EditionGetCommandletTest.java
Outdated
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/commandlet/EditionGetCommandletTest.java
Outdated
Show resolved
Hide resolved
# Conflicts: # CHANGELOG.adoc # cli/src/main/java/com/devonfw/tools/ide/io/FileAccess.java
adjusted tests adjusted log messages adjusted error messages
adjusted tests
adjusted tests
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.
@jan-vcapgemini thanks for taking over this PR. You did a really awesome job here 👍
I only added minor suggestions but one review comment seems to indicate some kind of bug that we should discuss and if confirmed fix before merging.
cli/src/main/java/com/devonfw/tools/ide/commandlet/AbstractVersionOrEditionGetCommandlet.java
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/commandlet/EditionGetCommandletTest.java
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/commandlet/EditionGetCommandletTest.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/commandlet/AbstractVersionOrEditionGetCommandlet.java
Outdated
Show resolved
Hide resolved
…sionOrEditionGetCommandlet.java
made sure that all get tests will not copy test resources enhanced edition basic test description
Thanks for fast and final perfection of this PR. |
…sing other tests to turn red as side effect
…her tests to turn red as side effect (#955)
Closes: #898
Edition/VersionGetCommandlet changed them to log the configured option if the tool is not installed and the installed option if it is installed.
Changed the toolInstallInfo method to log into IdeSublogger instead of using context.info or context.warning.
Changed the uninstall commandlet to log a warning in case the requested commandlet is not installed.
Changed the uninstallPlugin commandlet to give feedback wether the plugin could be deleted or if there was not installation found.
Adjusted Tests for Edition/VersionGetCommandlet as well as Uninstall commandlet to expect the correct loglevel or content of logged messages.
Added logAtProccessable to IdeTestContextAssertions to check if a log-message was logged on PROCESSABLE-level.
Added .ide.software.version file to the npm software in the basic ide-test-project-ressource, since it was needed to test my implementation.