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

directory usage #21

Closed
garfieldnate opened this issue Feb 10, 2022 · 3 comments
Closed

directory usage #21

garfieldnate opened this issue Feb 10, 2022 · 3 comments

Comments

@garfieldnate
Copy link

Hi, I like your project! My repository contains a docs/ directory with nested subdirectories of markdown files (documentation managed with Portray). It would be useful if there were a command to generate tests for an entire directory so that I don't have to call phmdoctest for each one individually. The simplest thing would probably be to output to a directory which directly mirrors the structure of the input directory.

@tmarktaylor
Copy link
Owner

Hello,

Please have a look at the project pytest-phmdoctest https://github.com/tmarktaylor/pytest-phmdoctest which might satisfy your use case. It is a pytest plugin. It can process multiple Markdown files from different directories in a single pytest invocation.

Please be aware that breaking changes are planned for pytest-phmdoctest. Please see its first issue.

To generate files and test them later try pytest --phmdoctest --phmdoctest-save DIRECTORY. That command will be revised in version 1.0.0.

@garfieldnate
Copy link
Author

Thanks! I'll take a look on Monday. It might be useful to link to this project from the readme of this repo.

@garfieldnate
Copy link
Author

Works great, thanks for the tip!

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

No branches or pull requests

2 participants