You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
I'm just trying out ward on some projects, porting over tests from pytest because I like new and shiny things! I have to say I really like ward so great job on an awesome tool! The incredibly clear diffs on failures are just a joy compared to pytest!
I have some projects where I put examples in the docstrings of public methods and I usually test these with pytest --doctest-modules. Is there anything similar to this in ward, plans to implement in the future or even a current workaround to achieve this?
Thanks for the great project!
The text was updated successfully, but these errors were encountered:
This is something I never really thought about - I guess because development of Ward was heavily influenced by my own experience testing and I've never used doctest before. I think it sounds like a great idea though.
Unfortunately it's not something I'm really familiar with and so don't know how you might workaround it.
When I pick development of Ward back up in the future (on a bit of a hiatus at the moment ;)), I'll most likely dig into this more. In the mean time, if you or anyone else wants to create a proposal and/or a PR I'd be totally open to that.
Awesome! I'll definitely see if I can contribute a solution, I think pytest more or less just calls the stdlib doctest module when required so it shouldn't be too strenuous!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi!
I'm just trying out ward on some projects, porting over tests from pytest because I like new and shiny things! I have to say I really like ward so great job on an awesome tool! The incredibly clear diffs on failures are just a joy compared to pytest!
I have some projects where I put examples in the docstrings of public methods and I usually test these with
pytest --doctest-modules
. Is there anything similar to this in ward, plans to implement in the future or even a current workaround to achieve this?Thanks for the great project!
The text was updated successfully, but these errors were encountered: