Skip to content

munet: run mutests from the munet cli - #72

Open
liambrady wants to merge 2 commits into
LabNConsulting:mainfrom
liambrady:liambrady/test_from_cli
Open

liambrady wants to merge 2 commits into
LabNConsulting:mainfrom
liambrady:liambrady/test_from_cli

Conversation

@liambrady

Copy link
Copy Markdown
Contributor

Refactor mutest such that the 'execute_test' function can be called from a non-mutest context. Specifically, it is modified such that it can be called from the munet CLI, allowing a mutest to be run repeatedly when drafting the test or after changes are made in the topology for debugging a test. Alongside this, a new Completer is added to detect local mutest files and auto-complete the command.

@liambrady
liambrady requested a review from choppsv1 September 29, 2025 16:49
@liambrady liambrady added enhancement New feature or request mutest mutest related item labels Sep 29, 2025
@codecov

codecov Bot commented Sep 29, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 62.50000% with 30 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.20%. Comparing base (e7ed4d5) to head (1fd8d9c).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
munet/cli.py 63.38% 26 Missing ⚠️
munet/mutest/__main__.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #72      +/-   ##
==========================================
- Coverage   60.55%   58.20%   -2.35%     
==========================================
  Files          19       21       +2     
  Lines        5990     6776     +786     
==========================================
+ Hits         3627     3944     +317     
- Misses       2363     2832     +469     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@choppsv1
choppsv1 force-pushed the main branch 3 times, most recently from 542f956 to d3bfa70 Compare January 26, 2026 08:20
@liambrady
liambrady marked this pull request as draft July 10, 2026 19:30
@liambrady
liambrady force-pushed the liambrady/test_from_cli branch from c495522 to 1377494 Compare August 20, 2026 14:53
Login information must be configured in the munet config file.

Also fixes SSH unit tests to allow for (re)running on systems where the
root user's password is locked. A locked password prevents key-based
auth from success on typical hosts.

Signed-off-by: Liam Brady <lbrady@labn.net>
Refactor mutest such that the 'execute_test' function can be called from
a non-mutest context. Specifcally, it is modified such that it can be
called from the munet CLI, allowing a mutest to be run repeatedly when
drafting the test. Alongside this, a new Completer is added to detect
local mutest files and auto-complete the command.

Signed-off-by: Liam Brady <lbrady@labn.net>
@liambrady
liambrady force-pushed the liambrady/test_from_cli branch from 1377494 to 1fd8d9c Compare November 17, 2026 19:53
@liambrady
liambrady marked this pull request as ready for review November 17, 2026 20:12
@liambrady

liambrady commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

This PR has undergone an AI-assisted review in order to improve the feature and detect issues. In addition to the review, a small number of SSH-related changes were additionally made to ensure that the CLI tests could run in my host environment.

Note: No unit testing framework for the secondary CLI features exists. Therefore, running tests over the secondary CLI was left at being manually tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request mutest mutest related item

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant