Skip to content

Enhance the Tests section with best practices for clarity and documentation #509

@akhilkrishnar0

Description

@akhilkrishnar0

Hi everyone,

I'd like to propose adding a new “Tests” section to the packaging guide that outlines best practices for writing clear, well-documented tests. This idea came up in a recent conversation pyOpenSci/software-peer-review#201, where we discussed the value of making tests easier for reviewers and contributors to understand.

Here’s what the new section could include:

  • Use of meaningful test names that reflect what is being tested
  • Docstrings or comments in test functions/modules that describe the purpose of the test
  • Clear test structure and organisation
  • Simple examples of good and bad test documentation practices

This would help both reviewers (who need to understand what’s being tested) and new contributors (who may want to add tests or debug).
Thanks to @ucodery for suggesting that I open this issue to get the conversation started.
Any comments or contributions are invited.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedWe welcome a contributor to work on this issue! thank you in advance!sprintable

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    tutorial/lesson updates

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions