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
A hatch test
command?
#1053
Comments
Yes that is literally coming next month actually! Right now I'm finishing up the |
Oh, great! |
If we're using this issue to track what similar commands could be added, |
Documentation would never happen I think because there is no monopoly. For tests |
Well... I think it's fair to say there is a duopoly? (I didn't even know that English word existed :) The only two tools I've seen used are Sphinx and mkdocs. Hatch could choose one or the other based on the existence of This could also live in extensions though. |
So Hatch would transparently manage the environment with conditional dependencies and any arguments would get passed directly to one of the two frameworks? Generally, I'm okay with that but often you need more logic like environment variables and select optional dependency groups (features/extras). Then again if I am just trying to satisfy most cases I think this is acceptable and anything more complex can just define an environment.
There is an open feature request for a plugin type that adds commands. I haven't done this yet because I'm still thinking about the best way to go about that. |
I was mentioning elsewhere also - I think the For MkDocs check out https://github.com/mkdocs/hatch-mkdocs :) |
though pytest and Sphinx are the the exceptions, i've seen a lot of development tools come and go in my time. actually i remember pytest being one among several established test frameworks and that Sphinx was alternativlos. given also the fact that hatch's |
On the topic of standardizing workflows, I think one cool feature of, e.g., Cargo, is the
cargo test
command that is the same across projects (as opposed in Python to:tox
,hatch run test
, ...).Maybe this is a silly idea or considered out of scope, but I wonder about Hatch providing a command
hatch test
. This could act likehatch run test:test
givenexcept that the above config would be implicit if not overridden.
The text was updated successfully, but these errors were encountered: