-
Notifications
You must be signed in to change notification settings - Fork 23
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
#608: enhance error messages #653
#608: enhance error messages #653
Conversation
added test for enhanced error messages
added outs to error message added check for DEFAULT_CAPTURE to start performLogOnError
reformatted process out and error messages added test with expected Exception and error messages added test resources
# Conflicts: # cli/src/main/java/com/devonfw/tools/ide/process/ProcessContextImpl.java
I need to move logic of getout and getErr into ProcessResult. |
refactored eclipse log method into ProcessResult added log method to ProcessResult optimized performLogOnError to use logger with proper log levels instead of custom messages
# Conflicts: # cli/src/main/java/com/devonfw/tools/ide/tool/eclipse/Eclipse.java
made sure that context runs on windows to detect dotnet.cmd properly
moved dotnet.cmd to windows folder
moved windows test to parameterized tests
added missing javadocs fixed dotnet windows test script
renamed dotnet.cmd to dotnet.exe
fixed DotNet test added run test to NpmTest removed unused test resource files renamed readme files to .gitkeep
made dotnet.exe executable
adjusted DotnetTest adjusted NpmTest
disabled dotnet run tests on CI disabled npm run test
Pull Request Test Coverage Report for Build 11595805984Details
💛 - 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.
@jan-vcapgemini thanks for your PR. You covered the relevant spots and did some good improvements. 👍
However, some things here IMHO need some rework.
Further, ProcessContextTestImpl
needs to be adopted since you now have added reasonable logging and you should remove the hack there to log the output again.
cli/src/main/java/com/devonfw/tools/ide/process/ProcessContextImpl.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/process/ProcessResultImpl.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/process/ProcessContextImpl.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/process/ProcessContextImpl.java
Outdated
Show resolved
Hide resolved
removed SubLogger moved throw of exceptions after logger optimized out and err creation removed level checks for logger
re-added logging of exitcode on proper log level
cli/src/main/java/com/devonfw/tools/ide/process/ProcessContextImpl.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/eclipse/Eclipse.java
Outdated
Show resolved
Hide resolved
removed duplicated log messages removed ProcessResult.run hack fixed and cleaned up tests renamed ProcessConttextUnderTest added new log method with 2 log levels to ProcessResult
There are tests revealing that something is still broken:
The message |
enforced log output of test scripts even if processMode was BACKGROUND
cli/src/test/java/com/devonfw/tools/ide/context/ProcessContextTestImpl.java
Outdated
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/tool/tomcat/TomcatTest.java
Outdated
Show resolved
Hide resolved
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 completing this rather complicated and underestimated story 👍
Have a look at the remaining comments. Then we can merge. Great work 🥇
…TestImpl.java Co-authored-by: Jörg Hohwiller <hohwille@users.noreply.github.com>
removed hacks
Fixes: #608
Implements: