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
can't run spec modules? #8
Comments
Arion uses runhaskell to run individual tests. Does the example that you
|
No. hspec-discover usually constructs a file on the fly that finds all of the spec files. http://hspec.github.io/hspec-discover.html is the workflow i'm talking about. |
Yup. That's how hspec discover works :). Arion expects a main in every spec
|
so it's one or the other? hm. that's a pity. I still need a way to run all my tests in CI etc. |
Well. It works this way for now. But I can guarantee you that I have some It's just one line of code you will have to add per spec :-) main = hspec spec hspec-discover will still work without any problem and so will Arion. We can keep this issue open and tie it to a future milestone. Does that On Mar 29, 2015 8:32 PM, "Mark Wotton" notifications@github.com wrote:
|
I can guarantee you that hspec-discover will not break. All of Arion's specs have a main function. Once I had basic functionality I used Arion to watch and run specs while I was making it better. |
ah, good point - ok, I can live with that for now. It's certainly a lot faster than my
hack |
Thanks. I will make sure I come up with a solution for this. |
I also have my tests set up to use hspec auto-discovery, see this as example: https://github.com/yesodweb/yesod-scaffold/tree/postgres/test |
You just need one line of code per spec for now :) I'll get to this in the near future. Have some plans of running tests
|
Standard way of setting up HSpec test files, as far as i'm aware, is to create a hierarchy of test/Foo/BarSpec.hs, and export 'spec' from each, letting hspec-discover do the work of collecting them. Arion doesn't seem to support this workflow:
gives
The text was updated successfully, but these errors were encountered: