Skip to content

Add test of interactive calls to existing hyrolo tests#900

Closed
matsl wants to merge 2 commits intomasterfrom
pr_add_hyrolo_interactive_tests
Closed

Add test of interactive calls to existing hyrolo tests#900
matsl wants to merge 2 commits intomasterfrom
pr_add_hyrolo_interactive_tests

Conversation

@matsl
Copy link
Collaborator

@matsl matsl commented Mar 13, 2026

What

Add test of interactive calls to existing hyrolo tests

  • test/hyrolo-tests.el (hyrolo-add-items-interactive):
    (hyrolo-tests--hyrolo-grep-interactive): Add new separate test for
    interactive call.
    (hyrolo-sort-test, hyrolo-fgrep-find-all-types-of-files): Modify test to
    do both interactive and non-interactive call.

Why

There are code paths that are only triggered through interactive
calls so for good coverage we need to do that as well.

Note

There are unfortunately many hyrolo functions, with and without
interactive specifications, that have no tests today. This PR only
scratches the surface. So there is more work to be done for getting
better test coverage of hyrolo.

* test/hyrolo-tests.el (hyrolo-add-items-interactive):
    (hyrolo-tests--hyrolo-grep-interactive): Add new separate test for
    interactive call.
    (hyrolo-sort-test, hyrolo-fgrep-find-all-types-of-files): Modify test to
    do both interactive and non-interactive call.
@matsl matsl requested a review from rswgnu March 13, 2026 22:39
@@ -1,3 +1,11 @@
2026-03-13 Mats Lidell <matsl@gnu.org>

* test/hyrolo-tests.el (hyrolo-add-items-interactive):
Copy link
Owner

Choose a reason for hiding this comment

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

Use hyrolo-tests-- prefix consistently for all test defined herein.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do you think we should rename all tests using the prefix or only the tests we touch as we do updates?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@rswgnu I added all refactoring together with this PR here into #901. So setting this as a draft for now. If you prefer to take i piece by piece, commit by commit, I can activate this again.

@matsl matsl requested a review from rswgnu March 14, 2026 12:55
@matsl matsl marked this pull request as draft March 14, 2026 14:17
@rswgnu
Copy link
Owner

rswgnu commented Mar 14, 2026 via email

@matsl
Copy link
Collaborator Author

matsl commented Mar 14, 2026

Just do it as you update things.

OK. Lets discuss tomorrow about #901 where I put everything together. Used my time awake before you got a chance to reply. Actually doing most of those changes were simple replacements so did not take much time.

@rswgnu
Copy link
Owner

rswgnu commented Mar 16, 2026

Now you can close this PR because 901 supeceded it, right?

@matsl
Copy link
Collaborator Author

matsl commented Mar 16, 2026

Now you can close this PR because 901 supeceded it, right?

Yes. It was the first part of a multiple step change which all went into #901.

Thanks for accepting that.

@matsl matsl closed this Mar 16, 2026
@matsl matsl deleted the pr_add_hyrolo_interactive_tests branch March 16, 2026 21:56
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.

2 participants