Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to easily run doc tests #173

Open
srid opened this issue Jun 23, 2023 · 1 comment
Open

Provide a way to easily run doc tests #173

srid opened this issue Jun 23, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@srid
Copy link
Contributor

srid commented Jun 23, 2023

numtide/treefmt-nix#86

One day I'll add CI for the docs; need to work on the OSS use case a bit.

Something that runs doc tests just for the current module would be nice, rather than all modules.

Maybe as a flake-module ...

{
  imports = [
    flake-parts.flakeModules.doctest
  ];
  # adds a flake check
  flake.flake-parts.doctest.modulesToTest = [ self.flakeModule ]; # default anyway
}
@srid
Copy link
Contributor Author

srid commented Jun 23, 2023

Maybe as a flake-module ...

Actually, that won't work since the flake containing the flake module doesn't use flake-parts itself.

@srid srid changed the title A flake module for doc tests Provide a way to easily run doc tests Jun 23, 2023
@roberth roberth added the enhancement New feature or request label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants