Skip to content

Create tests for completeness of documentation #916

Closed

Description

@AshesITR

From https://github.com/AshesITR/lintr/pull/2#discussion_r820162915

do we have a CRAN release script? we should add something that ensures this list is complete before release in case new tags are added

Yeah I thought about the possibility to add a test case, but wasn't sure if testthat would be able to reliably inspect the current package help index.

We should also check that all tags have at least one linter, that all tags listed in available_linters() are in fact documented, that all linters listed in available_linters() are exported (and documented) and all exported functions ending in _linter are in available_linters().

Even better would be to check for the Tags & Linters sections where appropriate, to ensure newly created linters have all the necessary boilerplate.

Activity

  1. jimhester commented on Mar 8, 2022

    @jimhester
    Member

    I would suggest using usethis::use_release_issue() for tracking any extra tasks needed for a release.

    You can add custom tasks by defining a release_bullets() function in the package namespace.

    e.g. here is the one for usethis itself https://github.com/r-lib/usethis/blob/2402ea8e4eb098b5fd18770174fa86ae1a803658/R/usethis-package.R#L13-L17

    The only minor gotcha with this approach is you have to have loaded the dev package before you run use_release_issue(), otherwise the extra bullets won't be found.

  2. AshesITR commented on Mar 10, 2022

    @AshesITR
    CollaboratorAuthor

    Will this gotcha apply for every release or just those with a modified release_bullets()?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions