hspec/sensei

`sensei` should work on arbitrary files that contain a `spec`.

soenkehahn opened this issue · 3 comments

I often find myself trying something out in a single file (e.g. Test.hs) and then adding a spec in that single file. sensei won't execute that spec then, probably because it doesn't end in ...Spec.hs.

I'm not sure this has no downsides, but I would propose that sensei should always try to execute a spec :: Spec top-level declaration, independent of the module name, file name or directory.

sol commented

Yes, I would had assumed it's already like that. But off it's not, let's change it. Patches welcome!

Sent from my iPhone

On 17 May 2015, at 10:34 am, Sönke Hahn notifications@github.com wrote:

I often find myself trying something out in a single file (e.g. Test.hs) and then adding a spec in that single file. sensei won't execute that spec then, probably because it doesn't end in ...Spec.hs.

I'm not sure this has no downsides, but I would propose that sensei should always try to execute a spec :: Spec top-level declaration, independent of the module name, file name or directory.


Reply to this email directly or view it on GitHub.

sol commented

@soenkehahn I can not reproduce the issue. For me it works. Can you give a minimal example?

Can't reproduce either, closing.