-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add TreatFocusedAs option? #35
Comments
I think an equivalent for When I made up the name I'm a little less sure about trying to wire together hspec's argument parser and tasty's options mechanism. For starters, that I propose the following:
|
Hrm, I've thought a bit more carefully about this and am starting to reconsider.
However, I'm not totally sure about what to do about the command-line options. What are our options? |
Well, I'm not at a stage to say something concrete. I need to dive into both hspec and tasty-hspec internals to see what is reachable. As I've mentioned initially my main concern (ignoring implementation complexity) is that many of hspec options might either duplicate or conflict with already existing own tasty options or be useless at all (e.g. output formatting options). So the most general idea of |
There is TreatPendingAs option, which per my understanding is roughly an equivalent to
--fail-on=pending
option ofhspec
. Is it possible to have an equivalent for--fail-on=focused
?More general question... Probably it is feasible to have smth like
--hspec-opt
, which will allow to pass options whateverhspec
accepts? Obviously, some options may be incompatible/useless, but it might be more robust to explicitly warn (or just mention in docs) on such options than implement all potentially useful options on ad hoc basis. At first glance one can re-use https://hackage.haskell.org/package/hspec-core-2.11.7/docs/Test-Hspec-Core-Runner.html#v:readConfig.I can give it a try and submit PR if such changes will be supported
The text was updated successfully, but these errors were encountered: