Skip to content

Conversation

tleonhardt
Copy link
Member

@tleonhardt tleonhardt commented Sep 16, 2025

Delete the cmd2-ext-test plugin code from the cmd2 repo and remove all reference to it. The last release of this plugin was over 4 years ago and as such it has been effectively abandoned. The testing of cmd2 proper should never have had a circular dependency on this plugin.

Also:

  • Copy the ExternalTestMixin class implementation to the tests_isolated_test_commandset/conftest.py file
  • Remove info on the External Test Plugin from the documentation
  • Add info on the cmd2 Plugin Template to the documentation
  • Remove loading of cmd2-ext-test source code from the pyproject.toml
  • Removed ext-test stuff from tasks.py for invoke usage

There is likely a lot more cleanup that can and should be done. This is just a first attempt to get our GitHub Actions CI/CD working without this plugin's circular dependency.

Closes #1517

Also:
- Copy the ExternalTestMixin class implementation to the `tests_isolated_test_commandset/conftest.py` file
- Remove info on the External Test Plugin from the documentation
- Add info on the cmd2 Plugin Template to the documentation
- Remove loading of `cmd2-ext-test` source code from the pyproject.toml
- Removed ext-test stuff from tasks.py for invoke usage

There is likely a lot more cleanup that can and should be done. This is just a first attempt to get our GitHub Actions CI/CD working without this plugin's circular dependency.
Copy link
Contributor

🤖 Hi @tleonhardt, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

Copy link

codecov bot commented Sep 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.90%. Comparing base (f9805db) to head (d705fa1).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1518      +/-   ##
==========================================
+ Coverage   98.79%   98.90%   +0.11%     
==========================================
  Files          23       21       -2     
  Lines        4961     4933      -28     
==========================================
- Hits         4901     4879      -22     
+ Misses         60       54       -6     
Flag Coverage Δ
unittests 98.90% <ø> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📋 Review Summary

This pull request effectively removes the cmd2-ext-test plugin and integrates its functionality directly into the test suite. The changes are well-focused on resolving the circular dependency issue.

🔍 General Feedback

  • The removal of the plugin and its references from the documentation and build system is thorough.
  • I've identified one critical issue in tests_isolated/test_commandset/conftest.py where the ExternalTestMixin is missing its base class. This needs to be fixed to ensure the mixin works as intended.

@tleonhardt tleonhardt merged commit bad67dc into main Sep 16, 2025
42 checks passed
@tleonhardt tleonhardt deleted the delete-ext-test branch September 16, 2025 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix dependency issue with cmd2-ext-test plugin
1 participant