<div>It silences HUnit's output, but will tell you what happens when there is a failure- which I think is what you want. There are a few available output formatters if you don't like the default output, or you can write your own output formatter.</div>
<div><br></div>BDD is really a red herring. Instead of using function names to name tests you can use strings, which are inherently more descriptive. In chell you already have `assertions "numbers"`, in hspec it would be `it "numbers"`. The preferred style it to remove `test test_Numbers and the test_Numbers definition` which are redundant in this case, and instead place that inline where you define the suite, although that is optional.<div>
So I really can't tell any difference betwee "BDD" and "pass/fail assertions". You still just use assertions in hspec.</div><div><br><div><div><div class="gmail_quote">On Thu, Aug 11, 2011 at 7:36 AM, John Millikin <span dir="ltr"><<a href="mailto:jmillikin@gmail.com">jmillikin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have, but it's not quite what I'm looking for:<br>
<br>
- I don't want to silence HUnit's output, I just don't want anything<br>
to show on the console when a test *passes*. Showing output on a<br>
failure is good.<br>
<br>
- I'm not interested in BDD. Not to say it's not useful, but it<br>
doesn't match my style of testing (which uses mostly pass/fail<br>
assertions and properties).<br>
<div><div></div><div class="h5"><br>
On Thu, Aug 11, 2011 at 07:18, Greg Weber <<a href="mailto:greg@gregweber.info">greg@gregweber.info</a>> wrote:<br>
> Hi John,<br>
> I am wondering if you have seen the hspec package? [1] It seems to solve all<br>
> the problems you are with chell, including that it silences Hunit output. We<br>
> are using it for all the Yesod tests now.<br>
> Thanks,<br>
> Greg Weber<br>
> [1]: <a href="http://hackage.haskell.org/packages/archive/hspec/0.6.1/doc/html/Test-Hspec.html" target="_blank">http://hackage.haskell.org/packages/archive/hspec/0.6.1/doc/html/Test-Hspec.html</a><br>
</div></div></blockquote></div><br></div></div></div>