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 skip some examples #31

Open
jason0x43 opened this issue Feb 28, 2018 · 3 comments
Open

Provide a way to skip some examples #31

jason0x43 opened this issue Feb 28, 2018 · 3 comments

Comments

@jason0x43
Copy link

Snapguidist should ideally provide a way to filter which examples are tested, or to disable testing for specific code blocks. For example, users may not want snapguidist to run tests on example blocks in general doc sections.

@MicheleBertoli
Copy link
Collaborator

+100 @cef62 and I talked a lot about this.
PR anyone? :)

@jason0x43
Copy link
Author

One way to go about it would be to give snapguidist's Preview a prop that would disable testing, and have Playground set that on Preview based on a setting passed into Playground, like notest (for consistency with noeditor).

@jason0x43
Copy link
Author

That would require duplicating a bit more of styleguidist's Playground's code in snapguidist, but it shouldn't be too bad.

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

No branches or pull requests

2 participants