plugin-installation-manager-tool icon indicating copy to clipboard operation
plugin-installation-manager-tool copied to clipboard

Added plugin information while using verbose

Open AayushSaini101 opened this issue 2 years ago • 3 comments
trafficstars

Fixes #610

Submitter checklist

  • [x] Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • [x] Ensure that the pull request title represents the desired changelog entry
  • [x] Please describe what you did
  • [x] Link to relevant issues in GitHub or Jira
  • [x] Link to relevant pull requests, esp. upstream and downstream changes
  • [x] Ensure you have provided tests - that demonstrates feature works or fixes the issue

AayushSaini101 avatar Nov 12 '23 12:11 AayushSaini101

Thanks @MarkEWaite I have one doubt, How can i compare the logs of --verbose for the test cases. I need to test whether the log containing particular statement or not that concludes the plugin is already present or not

AayushSaini101 avatar Nov 13 '23 17:11 AayushSaini101

Thanks @MarkEWaite I have one doubt, How can i compare the logs of --verbose for the test cases. I need to test whether the log containing particular statement or not that concludes the plugin is already present or not

I would search the existing tests in the repository to see if any of them are already testing the output. If such a test already exists, then I'd copy its source code into a new test and adapt the new test to check the new behavior.

plugin-management-cli/src/test/java/io/jenkins/tools/pluginmanager/cli/CliOptionsTest.java looks like a good place to start

MarkEWaite avatar Nov 13 '23 17:11 MarkEWaite

Thanks @MarkEWaite I have one doubt, How can i compare the logs of --verbose for the test cases. I need to test whether the log containing particular statement or not that concludes the plugin is already present or not

I would search the existing tests in the repository to see if any of them are already testing the output. If such a test already exists, then I'd copy its source code into a new test and adapt the new test to check the new behavior.

plugin-management-cli/src/test/java/io/jenkins/tools/pluginmanager/cli/CliOptionsTest.java looks like a good place to start

Thanks @MarkEWaite

AayushSaini101 avatar Nov 14 '23 06:11 AayushSaini101