Skip to content

Add guidelines regarding how to test plugins #937

Open

Description

@ghisvail

Description

I recently designed and published a Commitizen plugin to recognize the commit style used by part of the PyData stack (NumPy, SciPy, Pandas, ...) and generate a KAC-like change log automatically from relevant commits.

The code for it is there if you're interested.

I found the documentation for designing plugins very good. I followed these steps and was able to test everything with dry runs and on the actual project change log.

That being said, I would like to add a test suite to avoid accidental regressions in the future. That part is not covered by the documentation, and code examples are scattered in the main commitizen repo.

Could you enhance the documentation by providing additional tips and guidelines to write an appropriate test suite for plugin designers?

Cheers,
Ghis

Possible Solution

No response

Additional context

No response

Additional context

No response

Activity

  1. woile commented on Dec 17, 2023

    @woile
    Member

    That's awesome! Could you provide some examples of what kind of regressions you'd like to prevent?

  2. ghisvail commented on Dec 17, 2023

    @ghisvail
    Author

    what kind of regressions you'd like to prevent?

    For instance, I'd want to make sure that the version bump or the change log extraction rules are always respected.

    It took me some time to fiddle with the different regexes, and I am sure they are not perfect. Adding some automated test cases could reveal some corners I have missed. Right now, I am mostly relying on --dry-run to do manual testing.

  3. added
    effects-of-ai-on-code-review
    on Jan 7, 2026
  4. abdullahjaved06 commented on Nov 3, 2026

    @abdullahjaved06

    Hi, I’d like to work on this. I’m happy to write the plugin testing guide with tested examples based on the existing test patterns in the repo. Anything specific you’d want the guide to cover?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    effects-of-ai-on-code-reviewgood first issueissue-status: wait-for-implementationtype: documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions